gst/mpegdemux/gstmpegtsdemux.c: Don't forward duration requests in BYTES, since the...
authorDavid Schleef <ds@schleef.org>
Fri, 9 Jan 2009 22:09:06 +0000 (22:09 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 9 Jan 2009 22:09:06 +0000 (22:09 +0000)
Original commit message from CVS:
* gst/mpegdemux/gstmpegtsdemux.c:
Don't forward duration requests in BYTES, since the returned
value doesn't mean anything.  Fixes #566959

ChangeLog
gst/mpegdemux/gstmpegtsdemux.c

index cf7795d..1aeeb9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-01-09  David Schleef  <ds@schleef.org>
 
+       * gst/mpegdemux/gstmpegtsdemux.c:
+       Don't forward duration requests in BYTES, since the returned
+       value doesn't mean anything.  Fixes #566959
+
+2009-01-09  David Schleef  <ds@schleef.org>
+
        * gst/qtmux/gstqtmuxmap.c: Add video/x-qt-part and video/x-m4-part
        to caps so schroenc/schroparse can use it.  Fixes #566958
 
index ba32ebd..1bb1de3 100644 (file)
@@ -2445,6 +2445,21 @@ gst_fluts_demux_src_pad_query (GstPad * pad, GstQuery * query)
       }
       break;
     }
+    case GST_QUERY_DURATION:
+    {
+      GstFormat format;
+      gint64 duration;
+
+      gst_query_parse_duration (query, &format, &duration);
+
+      if (format == GST_FORMAT_BYTES) {
+        res = FALSE;
+      } else {
+        res = gst_pad_query_default (pad, query);
+      }
+
+      break;
+    }
     default:
       res = gst_pad_query_default (pad, query);
   }