reverted adding GST_EVENT_FLUSH_START as applied patch on gst-omx 90/141090/1 accepted/tizen/4.0/unified/20170816.012710 accepted/tizen/4.0/unified/20170816.015440 accepted/tizen/unified/20170731.020718 submit/tizen/20170728.064255 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
authorSejun Park <sejun79.park@samsung.com>
Fri, 28 Jul 2017 06:39:10 +0000 (15:39 +0900)
committerSejun Park <sejun79.park@samsung.com>
Fri, 28 Jul 2017 06:39:10 +0000 (15:39 +0900)
Change-Id: I72e578c8d7e63d2075f2750abb3d5061ad5e4cf3

gst-libs/gst/video/gstvideodecoder.c

index ed79d25d95c9d8bb4307b232c55a58a047e91f15..5a6ffb045a83181316b0d48a38f8a64c0bc99c2a 100644 (file)
@@ -1385,10 +1385,12 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
       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;
 
@@ -1396,14 +1398,6 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
       }
       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);