GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
break;
}
-#ifdef TIZEN_FEATURE_VIDEO_MODIFICATION
- case GST_EVENT_FLUSH_START:
+ case GST_EVENT_FLUSH_STOP:
{
GList *l;
+
+ GST_VIDEO_DECODER_STREAM_LOCK (decoder);
+
for (l = priv->frames; l; l = l->next) {
GstVideoCodecFrame *frame = l->data;
}
priv->current_frame_events = _flush_events (decoder->srcpad,
decoder->priv->current_frame_events);
- break;
- }
-#endif
- case GST_EVENT_FLUSH_STOP:
- {
-
- GST_VIDEO_DECODER_STREAM_LOCK (decoder);
-
/* well, this is kind of worse than a DISCONT */
gst_video_decoder_flush (decoder, TRUE);
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);