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' : '>';