Index: gst/mpegdemux/gstmpegtsdemux.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mpegdemux/gstmpegtsdemux.c,v
retrieving revision 1.13
diff -u -r1.13 gstmpegtsdemux.c
--- gst/mpegdemux/gstmpegtsdemux.c	26 Nov 2008 04:57:22 -0000	1.13
+++ gst/mpegdemux/gstmpegtsdemux.c	9 Jan 2009 20:24:09 -0000
@@ -2445,6 +2445,21 @@
       }
       break;
     }
+    case GST_QUERY_DURATION:
+    {
+      GstFormat format;
+      gint64 duration;
+
+      gst_query_parse_duration (query, &format, &duration);
+
+      if (format == GST_FORMAT_BYTES) {
+        res = TRUE;
+      } else {
+        res = gst_pad_query_default (pad, query);
+      }
+
+      break;
+    }
     default:
       res = gst_pad_query_default (pad, query);
   }
