summaryrefslogtreecommitdiffstats
path: root/gst/debug/progressreport.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/debug/progressreport.c')
-rw-r--r--gst/debug/progressreport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/debug/progressreport.c b/gst/debug/progressreport.c
index 82bdb3c1..d60579b2 100644
--- a/gst/debug/progressreport.c
+++ b/gst/debug/progressreport.c
@@ -182,8 +182,8 @@ gst_progress_report_report (GstProgressReport * filter, GTimeVal cur_time)
format = try_formats[i];
- if (gst_pad_query_position (peer_pad, &format, &cur_progress,
- &total_progress)) {
+ if (gst_pad_query_position (peer_pad, &format, &cur_progress) &&
+ gst_pad_query_duration (peer_pad, &format, &total_progress)) {
switch (format) {
case GST_FORMAT_BYTES:
format_name = "bytes";