diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-03-30 19:08:33 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-04-04 11:38:29 -0300 |
commit | 4b349306b0e35ae62e932dedae7092f6ebadd78d (patch) | |
tree | 0a480b1c05e2b6b3b52cf6f929555085d649334e | |
parent | 84abbe0d52db3bd495bb0405348e0214244e944a (diff) |
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
-rw-r--r-- | 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 d5e7d3622..00743948a 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 */ |