mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
playbin2: Use new playsink send-event-mode property
Set playsink's send-event-mode to MODE_FIRST as playbin2 only needs one event going to the demuxer for its operation https://bugzilla.gnome.org/show_bug.cgi?id=673211
This commit is contained in:
parent
84abbe0d52
commit
4b349306b0
1 changed files with 2 additions and 1 deletions
|
@ -1303,7 +1303,8 @@ gst_play_bin_init (GstPlayBin * playbin)
|
||||||
|
|
||||||
/* add sink */
|
/* add sink */
|
||||||
playbin->playsink =
|
playbin->playsink =
|
||||||
g_object_new (GST_TYPE_PLAY_SINK, "name", "playsink", NULL);
|
g_object_new (GST_TYPE_PLAY_SINK, "name", "playsink", "send-event-mode",
|
||||||
|
1, 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