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:
Thiago Santos 2012-03-30 19:08:33 -03:00
parent 84abbe0d52
commit 4b349306b0

View file

@ -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 */