mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
playbin2: Give a fixed name "playsink" to the internal playsink element
This commit is contained in:
parent
68220a1893
commit
56737a2ab1
1 changed files with 2 additions and 1 deletions
|
@ -1259,7 +1259,8 @@ gst_play_bin_init (GstPlayBin * playbin)
|
||||||
playbin->elements_lock = g_mutex_new ();
|
playbin->elements_lock = g_mutex_new ();
|
||||||
|
|
||||||
/* add sink */
|
/* 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_bin_add (GST_BIN_CAST (playbin), GST_ELEMENT_CAST (playbin->playsink));
|
||||||
gst_play_sink_set_flags (playbin->playsink, DEFAULT_FLAGS);
|
gst_play_sink_set_flags (playbin->playsink, DEFAULT_FLAGS);
|
||||||
/* Connect to notify::volume and notify::mute signals for proxying */
|
/* Connect to notify::volume and notify::mute signals for proxying */
|
||||||
|
|
Loading…
Reference in a new issue