Send seek event to baseparse when aacparse seek failed in push mode 84/269484/3 accepted/tizen_unified tizen accepted/tizen/unified/20220207.045137 submit/tizen/20220204.073655
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 17 Jan 2022 02:07:07 +0000 (11:07 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 17 Jan 2022 23:41:40 +0000 (08:41 +0900)
Change-Id: Ifcbb545a3d68c110a5442db216ec23ead9a9ca26

gst/audioparsers/gstaacparse.c
packaging/gst-plugins-good.spec

index 6ec3a75506401b415fb09ab3b4218ded64cde10e..cd15f01f9e1ecf80983f600c807f7db7809a758b 100644 (file)
@@ -2139,9 +2139,14 @@ gst_aac_parse_adts_src_eventfunc (GstBaseParse * parse, GstEvent * event)
         GstPad *srcpad = parse->srcpad;
         GST_INFO_OBJECT (aacparse, "aac parser is PUSH MODE.");
         /* check NULL */
-        if (aacparse->byte_seekable)
-          return gst_aac_audio_parse_do_push_seek (parse, srcpad, event);
-
+        if (aacparse->byte_seekable) {
+          ret = gst_aac_audio_parse_do_push_seek (parse, srcpad, event);
+          if (!ret) {
+            GST_INFO_OBJECT (aacparse, "PUSH mode seek() failed, Trying base seek()");
+            goto aac_seek_null_exit;
+          }
+          return ret;
+        }
         GST_INFO_OBJECT (aacparse, "not support byte seek");
         goto aac_seek_null_exit;
       }
index 3bd4bcce8d100969f0188d8216368504b4e7c4ab..8dd8d4ca7c74ed91f4e57e27c4dc887fd32b7d25 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:           gst-plugins-good
 Version:        1.16.2
-Release:        32
+Release:        33
 License:        LGPL-2.1+
 Summary:        GStreamer Streaming-Media Framework Plug-Ins
 Url:            http://gstreamer.freedesktop.org/