playbin2: Use new playsink send-event-mode property
authorThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 30 Mar 2012 22:08:33 +0000 (19:08 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 4 Apr 2012 14:38:29 +0000 (11:38 -0300)
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

index d5e7d36..0074394 100644 (file)
@@ -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 */