diff options
author | Josep Torra <n770galaxy@gmail.com> | 2013-09-20 08:25:21 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-09-20 17:52:45 +0200 |
commit | 78dc6235d43066e56566b87e8dc7178e86a5b7f5 (patch) | |
tree | c7ea167089c244fcce23c418dadca5290be63724 | |
parent | 02e4873651259f6b5401adb07d1ae22d92a6be1c (diff) | |
download | gst-omx-78dc6235d43066e56566b87e8dc7178e86a5b7f5.tar.gz |
examples: don't force an specific audio sink
Let playbin2 choose the audiosink available in the system.
-rw-r--r-- | examples/egl/testegl.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/egl/testegl.c b/examples/egl/testegl.c index 0e9b5c2..617b547 100644 --- a/examples/egl/testegl.c +++ b/examples/egl/testegl.c @@ -1344,7 +1344,6 @@ query_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) static gboolean init_playbin_player (APP_STATE_T * state, const gchar * uri) { - GstElement *asink; GstElement *vsink; vsink = gst_element_factory_make ("fakesink", "vsink"); @@ -1360,17 +1359,10 @@ init_playbin_player (APP_STATE_T * state, const gchar * uri) gst_pad_add_probe (gst_element_get_static_pad (vsink, "sink"), GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM, query_cb, state, NULL); -#if 0 - asink = gst_element_factory_make ("fakesink", "asink"); - g_object_set (asink, "sync", TRUE, "silent", TRUE, NULL); -#else - asink = gst_element_factory_make ("alsasink", "asink"); -#endif - /* Instantiate and configure playbin */ state->pipeline = gst_element_factory_make ("playbin", "player"); g_object_set (state->pipeline, "uri", uri, - "video-sink", vsink, "audio-sink", asink, "flags", + "video-sink", vsink, "flags", GST_PLAY_FLAG_NATIVE_VIDEO | GST_PLAY_FLAG_AUDIO, NULL); return TRUE; |