[0.10] gst-plugins-base: playbin2: Use new playsink send-event-mode property

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Wed Apr 4 07:43:50 PDT 2012


Module: gst-plugins-base
Branch: 0.10
Commit: 4b349306b0e35ae62e932dedae7092f6ebadd78d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=4b349306b0e35ae62e932dedae7092f6ebadd78d

Author: Thiago Santos <thiago.sousa.santos at collabora.com>
Date:   Fri Mar 30 19:08:33 2012 -0300

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 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index d5e7d36..0074394 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 */



More information about the gstreamer-commits mailing list