summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2014-06-05 08:29:50 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-06-05 09:41:31 +0200
commit3cb5bc886869349c75ad2f1c6662a899b166bb91 (patch)
tree1927f08aa8e69efc2db2e01bbb42a41997e438d3
parent9538651a201654e336b3d13536b96232a54b5e13 (diff)
downloadgstreamer-plugins-bad-3cb5bc886869349c75ad2f1c6662a899b166bb91.tar.gz
rtmpsrc: Fix position querying
It's the position we're querying, not the duration :)
-rw-r--r--ext/rtmp/gstrtmpsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/rtmp/gstrtmpsrc.c b/ext/rtmp/gstrtmpsrc.c
index b6c404829..f17814639 100644
--- a/ext/rtmp/gstrtmpsrc.c
+++ b/ext/rtmp/gstrtmpsrc.c
@@ -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;