summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-09-20 08:25:21 +0200
committerJosep Torra <n770galaxy@gmail.com>2013-09-20 08:25:21 +0200
commitce06ee6d02ec943e60403c7ab83b5523c159c2ed (patch)
tree539664d9aca41aa021af472979b0df5dc548dd28
parente25ff4287c27bbb638743c9b1e3f1d145aa3974a (diff)
downloadgst-omx-ce06ee6d02ec943e60403c7ab83b5523c159c2ed.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.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/examples/egl/testegl.c b/examples/egl/testegl.c
index b670dd7..d130dc1 100644
--- a/examples/egl/testegl.c
+++ b/examples/egl/testegl.c
@@ -897,7 +897,6 @@ events_cb (GstPad * pad, GstEvent * event, 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");
@@ -911,17 +910,9 @@ init_playbin_player (APP_STATE_T * state, const gchar * uri)
gst_pad_add_event_probe (gst_element_get_static_pad (vsink, "sink"),
G_CALLBACK (events_cb), state);
-#if 0
- asink = gst_element_factory_make ("fakesink", "asink");
- g_object_set (asink, "sync", TRUE, "silent", TRUE, NULL);
-#else
- asink = gst_element_factory_make ("pulsesink", "asink");
-#endif
-
/* Instantiate and configure playbin2 */
state->pipeline = gst_element_factory_make ("playbin2", "player");
- g_object_set (state->pipeline, "uri", uri,
- "video-sink", vsink, "audio-sink", asink, NULL);
+ g_object_set (state->pipeline, "uri", uri, "video-sink", vsink, NULL);
return TRUE;
}