From 2e29b1e5c3ea0f43a6065696b2423f8ceec7eb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 17 Mar 2017 12:17:56 +0200 Subject: [PATCH] tutorials/playback: Fix more occurences of GST_TIME_FORMAT / GST_FORMAT_TIME mixups https://bugzilla.gnome.org/show_bug.cgi?id=777734 --- markdown/tutorials/playback/progressive-streaming.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown/tutorials/playback/progressive-streaming.md b/markdown/tutorials/playback/progressive-streaming.md index ea3b16fe7a..01574e5c89 100644 --- a/markdown/tutorials/playback/progressive-streaming.md +++ b/markdown/tutorials/playback/progressive-streaming.md @@ -136,9 +136,9 @@ static gboolean refresh_ui (CustomData *data) { for (i = (gint)start; i < stop; i++) graph [i] = '-'; } - if (gst_element_query_position (data->pipeline, GST_TIME_FORMAT, &position) && + if (gst_element_query_position (data->pipeline, GST_FORMAT_TIME, &position) && GST_CLOCK_TIME_IS_VALID (position) && - gst_element_query_duration (data->pipeline, GST_TIME_FORMAT, &duration) && + gst_element_query_duration (data->pipeline, GST_FORMAT_TIME, &duration) && GST_CLOCK_TIME_IS_VALID (duration)) { i = (gint)(GRAPH_LENGTH * (double)position / (double)(duration + 1)); graph [i] = data->buffering_level < 100 ? 'X' : '>';