From: Joungkook Seo Date: Tue, 14 May 2013 08:28:32 +0000 (+0900) Subject: [gst-plugins-base] Fixed wrong duration for push mode (oggdemux) X-Git-Tag: accepted/tizen/ivi/20140315.025552~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83ba1724b452371cb21d498a9edb0a799f5fb422;p=profile%2Fivi%2Fgst-plugins-base0.10.git [gst-plugins-base] Fixed wrong duration for push mode (oggdemux) Change-Id: I9a24e0d787097dd4c14fd388c0502438a727d737 --- diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index ac01b05..93bbc64 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -3245,8 +3245,12 @@ gst_ogg_demux_get_duration_push (GstOggDemux * ogg, int flags) granpos there, but it's fairly likely */ position = ogg->push_byte_length - DURATION_CHUNK_OFFSET - EOS_AVOIDANCE_THRESHOLD; - if (position < 0) - position = 0; + if (position < 0) { + if (ogg->push_byte_length > EOS_AVOIDANCE_THRESHOLD) + position = ogg->push_byte_length - (EOS_AVOIDANCE_THRESHOLD / 2); + else + position = 0; + } GST_DEBUG_OBJECT (ogg, "Getting duration, seeking near the end, to %" G_GINT64_FORMAT, position); diff --git a/packaging/gst-plugins-base.spec b/packaging/gst-plugins-base.spec index e7258bf..c5616a9 100644 --- a/packaging/gst-plugins-base.spec +++ b/packaging/gst-plugins-base.spec @@ -1,7 +1,7 @@ Name: gst-plugins-base Summary: GStreamer streaming media framework base plug-ins Version: 0.10.36 -Release: 22 +Release: 23 Group: Applications/Multimedia License: LGPLv2+ Source0: %{name}-%{version}.tar.gz