Add condition to drop frame when start decoder 33/245933/2 accepted/tizen/unified/20201027.125032 submit/tizen/20201026.104741
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 20 Oct 2020 05:53:30 +0000 (14:53 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 21 Oct 2020 08:28:56 +0000 (17:28 +0900)
- It will fix the error when decoder element is linked while playing contents.

[Version] 1.16.2-7
[Issue Type] Update

Change-Id: I62a14cb8efa184b3abd8513125f5f14dd138ba11
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
omx/gstomxvideodec.c
packaging/gst-omx.spec

index 10b0296..42ace2f 100644 (file)
@@ -2953,10 +2953,13 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
   if (!self->started) {
     if (!GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame)) {
 #ifdef TIZEN_FEATURE_OMX
-      GST_WARNING_OBJECT (self, "Not I frame[%"GST_TIME_FORMAT", but keep going...", GST_TIME_ARGS (frame->pts));
-#else /* TIZEN_FEATURE_OMX */
+      if (!self->codec_data) {
+#endif /* TIZEN_FEATURE_OMX */
       gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame);
       return GST_FLOW_OK;
+#ifdef TIZEN_FEATURE_OMX
+      }
+      GST_WARNING_OBJECT (self, "Not I frame[%"GST_TIME_FORMAT"], but keep going...", GST_TIME_ARGS (frame->pts));
 #endif /* TIZEN_FEATURE_OMX */
     }
 
index f2959e3..1f3c7da 100755 (executable)
@@ -1,7 +1,7 @@
 Name:           gst-omx
 Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
 Version:        1.16.2
-Release:        6
+Release:        7
 License:        LGPL-2.1+
 Group:          Multimedia/Framework
 Source0:        %{name}-%{version}.tar.gz