1 commit 3f7052aac5e0118a9a9e09fff2f65091be448972
2 Author: Song Bing <b06498@freescale.com>
3 Date: Thu Oct 23 13:35:13 2014 +0800
5 [streamsynchronizer] One stream can finish playback.
7 As changed GAP event EOS event, so EOS will send more times, which will
8 cause send function return error.
9 Streamsynchronizer will don’t send second track EOS event if send the
10 first track EOS return fail. Fixed by ignore the return error.
12 Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=736655]
14 Signed-off-by: Song Bing b06498@freescale.com
16 diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c
17 index ff42d72..d1732c3 100644
18 --- a/gst/playback/gststreamsynchronizer.c
19 +++ b/gst/playback/gststreamsynchronizer.c
20 @@ -482,7 +482,10 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent,
23 GST_DEBUG_OBJECT (pad, "Pushing EOS");
24 - ret = ret && gst_pad_push_event (pad, gst_event_new_eos ());
25 + /* FIXME: remove error check as GAP changed to EOS will send EOS
26 + * more times, which will cause return error and then don't send
27 + * EOS event to following tracks. */
28 + gst_pad_push_event (pad, gst_event_new_eos ());
29 gst_object_unref (pad);
30 epad = g_slist_next (epad);