theoradec: fix query
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 9 Dec 2009 16:24:01 +0000 (17:24 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 9 Dec 2009 16:24:01 +0000 (17:24 +0100)
ext/theora/theoradec.c

index 169fc29..6eef472 100644 (file)
@@ -430,7 +430,7 @@ theora_dec_src_query (GstPad * pad, GstQuery * query)
     case GST_QUERY_DURATION:
     {
       /* forward to peer for total */
-      res = gst_pad_peer_query (pad, query);
+      res = gst_pad_peer_query (dec->sinkpad, query);
       if (!res)
         goto error;