Modify audiodecoder sink event the same as videodecoder logic.
Change-Id: Ia8c4c0c2b55fe6934def573ee5465e44beb62ae8
Signed-off-by: Joungkook Seo <jk7704.seo@samsung.com>
} 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;
}
}
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
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