rtmpsrc: Fix position querying
authorEdward Hervey <bilboed@bilboed.com>
Thu, 5 Jun 2014 06:29:50 +0000 (08:29 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 5 Jun 2014 07:41:31 +0000 (09:41 +0200)
It's the position we're querying, not the duration :)

ext/rtmp/gstrtmpsrc.c

index b6c4048..f178146 100644 (file)
@@ -416,7 +416,7 @@ gst_rtmp_src_query (GstBaseSrc * basesrc, GstQuery * query)
 
       gst_query_parse_position (query, &format, NULL);
       if (format == GST_FORMAT_TIME) {
-        gst_query_set_duration (query, format, src->last_timestamp);
+        gst_query_set_position (query, format, src->last_timestamp);
         ret = TRUE;
       }
       break;