tutorials/playback: Fix more occurences of GST_TIME_FORMAT / GST_FORMAT_TIME mixups
authorSebastian Dröge <sebastian@centricular.com>
Fri, 17 Mar 2017 10:17:56 +0000 (12:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 17 Mar 2017 10:17:56 +0000 (12:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=777734

markdown/tutorials/playback/progressive-streaming.md

index ea3b16f..01574e5 100644 (file)
@@ -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' : '>';