From 4b349306b0e35ae62e932dedae7092f6ebadd78d Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 30 Mar 2012 19:08:33 -0300 Subject: [PATCH] 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 --- 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 d5e7d36221..00743948a0 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -1303,7 +1303,8 @@ gst_play_bin_init (GstPlayBin * playbin) /* add sink */ 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_play_sink_set_flags (playbin->playsink, DEFAULT_FLAGS); /* Connect to notify::volume and notify::mute signals for proxying */