summaryrefslogtreecommitdiff
path: root/gst-sdk/tutorials/android-tutorial-5
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-03 16:38:03 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-03 16:38:03 +0200
commit5389c1548b4c0f363f250ae5dcd69ed413d562e8 (patch)
tree5a88c78bb7d3615d3ddcb8369683a514e43876ee /gst-sdk/tutorials/android-tutorial-5
parente030812824c4fa3286f96615fef07c16fde6c097 (diff)
Disable subtitles for now
Diffstat (limited to 'gst-sdk/tutorials/android-tutorial-5')
-rwxr-xr-xgst-sdk/tutorials/android-tutorial-5/jni/tutorial-5.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gst-sdk/tutorials/android-tutorial-5/jni/tutorial-5.c b/gst-sdk/tutorials/android-tutorial-5/jni/tutorial-5.c
index 2da520e..a60962e 100755
--- a/gst-sdk/tutorials/android-tutorial-5/jni/tutorial-5.c
+++ b/gst-sdk/tutorials/android-tutorial-5/jni/tutorial-5.c
@@ -259,6 +259,7 @@ static void *app_function (void *userdata) {
CustomData *data = (CustomData *)userdata;
GSource *timeout_source;
GSource *bus_source;
+ guint flags;
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->pipeline = gst_element_factory_make ("playbin2", NULL);
-
- if (0) {
- GstElement *fakesink;
- fakesink = gst_element_factory_make ("fakesink", NULL);
- g_object_set (fakesink, "sync", TRUE, NULL);
- g_object_set (data->pipeline, "video-sink", fakesink, NULL);
- }
+ g_object_get (data->pipeline, "flags", &flags, NULL);
+ /* Disable subtitles for now */
+ flags &= ~0x00000004;
+ g_object_set (data->pipeline, "flags", flags, NULL);
if (data->native_window) {
GST_DEBUG ("Native window already received, notifying the pipeline about it.");