[0.11] gst-plugins-bad: cogmse: signal chain functions to exit on flush-start

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 04:23:56 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 15f41b6887cff3f1662a0c844058b907f5ab90ba
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=15f41b6887cff3f1662a0c844058b907f5ab90ba

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Jan 13 12:55:39 2012 +0000

cogmse: signal chain functions to exit on flush-start

---

 ext/cog/gstcogmse.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ext/cog/gstcogmse.c b/ext/cog/gstcogmse.c
index edfd914..446d994 100644
--- a/ext/cog/gstcogmse.c
+++ b/ext/cog/gstcogmse.c
@@ -311,6 +311,7 @@ gst_mse_reset (GstMSE * fs)
   fs->luma_mse_sum = 0;
   fs->chroma_mse_sum = 0;
   fs->n_frames = 0;
+  fs->cancel = FALSE;
 
   if (fs->buffer_ref) {
     gst_buffer_unref (fs->buffer_ref);
@@ -436,9 +437,11 @@ gst_mse_sink_event (GstPad * pad, GstEvent * event)
       break;
     case GST_EVENT_FLUSH_START:
       GST_DEBUG ("flush start");
+      fs->cancel = TRUE;
       break;
     case GST_EVENT_FLUSH_STOP:
       GST_DEBUG ("flush stop");
+      fs->cancel = FALSE;
       break;
     default:
       break;



More information about the gstreamer-commits mailing list