playbin2: Give a fixed name "playsink" to the internal playsink element
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 22 Feb 2012 11:17:47 +0000 (12:17 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 22 Feb 2012 11:17:47 +0000 (12:17 +0100)
gst/playback/gstplaybin2.c

index dde0cb8..1874d95 100644 (file)
@@ -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 */