baseparse: Make possible update of audio duration at the prepare state 06/55506/2
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 24 Dec 2015 06:15:51 +0000 (15:15 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 28 Dec 2015 09:44:34 +0000 (18:44 +0900)
Sync with tizen 2.4 fixed code (http://165.213.149.170/gerrit/#/c/24630)

Change-Id: I969aec322bfd189e626857a59fb9346f2b88dad6
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
libs/gst/base/gstbaseparse.c
packaging/gstreamer.spec

index c9a57c5..65e9766 100644 (file)
@@ -2278,7 +2278,11 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
   if (parse->priv->update_interval < 0)
     parse->priv->update_interval = 50;
   else if (parse->priv->update_interval > 0 &&
+#ifdef GST_BASEPARSE_MODIFICATION
+      ((parse->priv->framecount - 1) % parse->priv->update_interval) == 0)
+#else
       (parse->priv->framecount % parse->priv->update_interval) == 0)
+#endif
     gst_base_parse_update_duration (parse);
 
   if (GST_BUFFER_PTS_IS_VALID (buffer))
index 7494901..b62a2dc 100644 (file)
@@ -69,6 +69,7 @@ export CFLAGS="%{optflags} \
        -DGST_QUEUE2_MODIFICATION\
        -DGST_EXT_CURRENT_BYTES\
        -DGST_TIZEN_MODIFICATION\
+       -DGST_BASEPARSE_MODIFICATION\
        -fno-strict-aliasing"
 
 %configure\