From 56737a2ab14be68269cc4dc2caa45f16849a3006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 22 Feb 2012 12:17:47 +0100 Subject: [PATCH] playbin2: Give a fixed name "playsink" to the internal playsink element --- gst/playback/gstplaybin2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index dde0cb8c87..1874d9556a 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -1259,7 +1259,8 @@ gst_play_bin_init (GstPlayBin * playbin) playbin->elements_lock = g_mutex_new (); /* add sink */ - playbin->playsink = g_object_new (GST_TYPE_PLAY_SINK, NULL); + playbin->playsink = + g_object_new (GST_TYPE_PLAY_SINK, "name", "playsink", NULL); gst_bin_add (GST_BIN_CAST (playbin), GST_ELEMENT_CAST (playbin->playsink)); gst_play_sink_set_flags (playbin->playsink, DEFAULT_FLAGS); /* Connect to notify::volume and notify::mute signals for proxying */