[gstaduiodecoder] Fixed Bug for the case of receiving unsupported non TIME newsegment 76/46676/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150825.061031 accepted/tizen/tv/20150825.061048 accepted/tizen/wearable/20150825.061056 submit/tizen/20150825.020813 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorJoungkook Seo <jk7704.seo@samsung.com>
Tue, 25 Aug 2015 00:24:05 +0000 (09:24 +0900)
committerJoungkook Seo <jk7704.seo@samsung.com>
Tue, 25 Aug 2015 00:24:51 +0000 (09:24 +0900)
Modify audiodecoder sink event the same as videodecoder logic.

Change-Id: Ia8c4c0c2b55fe6934def573ee5465e44beb62ae8
Signed-off-by: Joungkook Seo <jk7704.seo@samsung.com>
gst-libs/gst/audio/gstaudiodecoder.c
packaging/gst-plugins-base.spec

index 19a03b0..7ab3a9a 100644 (file)
@@ -2070,8 +2070,12 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
         } else {
           GST_DEBUG_OBJECT (dec, "unsupported format; ignoring");
           GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
+#ifdef GST_EXT_AUDIODECODER_MODIFICATION
+          goto newseg_wrong_format;
+#else
           gst_event_unref (event);
           ret = FALSE;
+#endif
           break;
         }
       }
@@ -2172,6 +2176,16 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
       break;
   }
   return ret;
+
+#ifdef GST_EXT_AUDIODECODER_MODIFICATION
+newseg_wrong_format:
+  {
+    GST_DEBUG_OBJECT (dec, "received non TIME newsegment");
+    gst_event_unref (event);
+    /* SWALLOW EVENT */
+    return TRUE;
+  }
+#endif
 }
 
 static gboolean
index 3f0eb7f..36644a9 100644 (file)
@@ -77,6 +77,7 @@ export V=1
 NOCONFIGURE=1 ./autogen.sh
 export CFLAGS="%{optflags} -fno-strict-aliasing\
  %ifarch %{arm}
+ -DGST_EXT_AUDIODECODER_MODIFICATION\
  -DGST_EXT_XV_ENHANCEMENT\
  -DGST_EXT_LINK_FIMCCONVERT\
  -DGST_EXT_MIME_TYPES