[gst-plugins-base] Fixed wrong duration for push mode (oggdemux) tizen_2.1 accepted/tizen_2.1/20130520.093050 submit/tizen_2.1/20130516.042216
authorJoungkook Seo <jk7704.seo@samsung.com>
Tue, 14 May 2013 08:28:32 +0000 (17:28 +0900)
committerJoungkook Seo <jk7704.seo@samsung.com>
Tue, 14 May 2013 08:28:32 +0000 (17:28 +0900)
Change-Id: I9a24e0d787097dd4c14fd388c0502438a727d737

ext/ogg/gstoggdemux.c
packaging/gst-plugins-base.spec

index ac01b05..93bbc64 100644 (file)
@@ -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);
index e7258bf..c5616a9 100644 (file)
@@ -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