slackbuilds_ponce/libraries/gstreamermm/fix_warnings.patch
Matteo Bernardini 6906f6ee60 libraries/gstreamermm: Patch for gcc >= 7.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2021-04-17 23:27:34 -05:00

15 lines
608 B
Diff

Author: Marcin Kolny <marcin.kolny@gmail.com>
Description: Fix warnings
Origin: https://git.gnome.org/browse/gstreamermm/commit/gstreamer/gstreamermm/check.cc?id=c5006faf05bc4b46767d30f42bcb6157836b7540
Last-update: 2016-09-25
--- a/gstreamer/gstreamermm/check.cc
+++ b/gstreamer/gstreamermm/check.cc
@@ -54,7 +54,7 @@
element = ElementFactory::create_element (factory, factory);
- ThrowIf (element, "Could not create a '" + factory + "' element");
+ ThrowIf (!!element, "Could not create a '" + factory + "' element");
CheckRefCount (element->gobj(), factory, 1);
return element;