From db999572a87b5872a95240bd21ac2c7f1b5d2410 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Jun 2011 11:59:53 +0200 Subject: [PATCH] -base: fix for flush_stop event API change --- ext/ogg/gstoggdemux.c | 4 ++-- gst/adder/gstadder.c | 6 +++--- gst/encoding/gstsmartencoder.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 0b8c71b..26ad8a4 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2312,7 +2312,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event) /* we need to stop flushing on the srcpad as we're going to use it * next. We can do this as we have the STREAM lock now. */ if (flush) { - tevent = gst_event_new_flush_stop (); + tevent = gst_event_new_flush_stop (TRUE); gst_event_set_seqnum (tevent, seqnum); gst_pad_push_event (ogg->sinkpad, tevent); } @@ -2353,7 +2353,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event) /* we have to send the flush to the old chain, not the new one */ if (flush) { - tevent = gst_event_new_flush_stop (); + tevent = gst_event_new_flush_stop (TRUE); gst_event_set_seqnum (tevent, seqnum); gst_ogg_demux_send_event (ogg, tevent); } diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index 27d77d8..e879619 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -595,7 +595,7 @@ forward_event_func (const GValue * val, GValue * ret, EventData * data) /* quick hack to unflush the pads, ideally we need a way to just unflush * this single collect pad */ if (data->flush) - gst_pad_send_event (pad, gst_event_new_flush_stop ()); + gst_pad_send_event (pad, gst_event_new_flush_stop (TRUE)); } else { g_value_set_boolean (ret, TRUE); GST_LOG_OBJECT (pad, "Sent event %p (%s).", @@ -746,7 +746,7 @@ gst_adder_src_event (GstPad * pad, GstEvent * event) if (g_atomic_int_compare_and_exchange (&adder->flush_stop_pending, TRUE, FALSE)) { GST_DEBUG_OBJECT (adder, "pending flush stop"); - gst_pad_push_event (adder->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (adder->srcpad, gst_event_new_flush_stop (TRUE)); } break; } @@ -1090,7 +1090,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data) if (g_atomic_int_compare_and_exchange (&adder->flush_stop_pending, TRUE, FALSE)) { GST_DEBUG_OBJECT (adder, "pending flush stop"); - gst_pad_push_event (adder->srcpad, gst_event_new_flush_stop ()); + gst_pad_push_event (adder->srcpad, gst_event_new_flush_stop (TRUE)); } /* get available bytes for reading, this can be 0 which could mean empty diff --git a/gst/encoding/gstsmartencoder.c b/gst/encoding/gstsmartencoder.c index 0f9ab49..bfd7289 100644 --- a/gst/encoding/gstsmartencoder.c +++ b/gst/encoding/gstsmartencoder.c @@ -199,7 +199,7 @@ gst_smart_encoder_reencode_gop (GstSmartEncoder * smart_encoder) gst_pad_push_event (smart_encoder->internal_srcpad, gst_event_new_flush_start ()); gst_pad_push_event (smart_encoder->internal_srcpad, - gst_event_new_flush_stop ()); + gst_event_new_flush_stop (TRUE)); /* push newsegment */ GST_INFO ("Pushing newsegment %" GST_PTR_FORMAT, smart_encoder->newsegment); -- 2.7.4