blob: 7a8552c7a71f7aaecb884f38e809a7f3a81f6b85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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(
|