You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-video/subtitleeditor/files/subtitleeditor-0.41.0-texto...

17 lines
591 B

Author: Philip Rinn <rinni@inventati.org>
Description: Get textoverlay working with gstreamermm 0.10.11
--- a/src/vp/gstplayer.cc
+++ b/src/vp/gstplayer.cc
@@ -656,7 +656,10 @@
"Please check your GStreamer installation."), "ffmpegcolorspace"));
}
// textoverlay
- textoverlay = Gst::ElementFactory::create_element("textoverlay", "overlay");
+ // Workaround to prevent getting a NULL pointer from the
+ // cast_dynamic(textoverlay) call under gstreamermm 0.10.11
+ textoverlay = Gst::TextOverlay::create("overlay");
+
if(!textoverlay)
{
throw std::runtime_error(