mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
cogmse: signal chain functions to exit on flush-start
This commit is contained in:
parent
6cad606ead
commit
15f41b6887
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue