mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
Disable subtitles for now
This commit is contained in:
parent
e030812824
commit
5389c1548b
1 changed files with 5 additions and 7 deletions
|
@ -259,6 +259,7 @@ static void *app_function (void *userdata) {
|
||||||
CustomData *data = (CustomData *)userdata;
|
CustomData *data = (CustomData *)userdata;
|
||||||
GSource *timeout_source;
|
GSource *timeout_source;
|
||||||
GSource *bus_source;
|
GSource *bus_source;
|
||||||
|
guint flags;
|
||||||
|
|
||||||
GST_DEBUG ("Creating pipeline in CustomData at %p", data);
|
GST_DEBUG ("Creating pipeline in CustomData at %p", data);
|
||||||
|
|
||||||
|
@ -266,13 +267,10 @@ static void *app_function (void *userdata) {
|
||||||
data->context = g_main_context_new ();
|
data->context = g_main_context_new ();
|
||||||
|
|
||||||
data->pipeline = gst_element_factory_make ("playbin2", NULL);
|
data->pipeline = gst_element_factory_make ("playbin2", NULL);
|
||||||
|
g_object_get (data->pipeline, "flags", &flags, NULL);
|
||||||
if (0) {
|
/* Disable subtitles for now */
|
||||||
GstElement *fakesink;
|
flags &= ~0x00000004;
|
||||||
fakesink = gst_element_factory_make ("fakesink", NULL);
|
g_object_set (data->pipeline, "flags", flags, NULL);
|
||||||
g_object_set (fakesink, "sync", TRUE, NULL);
|
|
||||||
g_object_set (data->pipeline, "video-sink", fakesink, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data->native_window) {
|
if (data->native_window) {
|
||||||
GST_DEBUG ("Native window already received, notifying the pipeline about it.");
|
GST_DEBUG ("Native window already received, notifying the pipeline about it.");
|
||||||
|
|
Loading…
Reference in a new issue