tutorials: Fix typos

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1382>
This commit is contained in:
Krystian Wojtas 2021-11-23 19:56:27 +01:00
parent d67a63a298
commit 423acef4d9

View file

@ -245,7 +245,7 @@ static gboolean refresh_ui (CustomData *data) {
/* Block the "value-changed" signal, so the slider_cb function is not called /* Block the "value-changed" signal, so the slider_cb function is not called
* (which would trigger a seek the user has not requested) */ * (which would trigger a seek the user has not requested) */
g_signal_handler_block (data->slider, data->slider_update_signal_id); g_signal_handler_block (data->slider, data->slider_update_signal_id);
/* Set the position of the slider to the current pipeline positoin, in SECONDS */ /* Set the position of the slider to the current pipeline position, in SECONDS */
gtk_range_set_value (GTK_RANGE (data->slider), (gdouble)current / GST_SECOND); gtk_range_set_value (GTK_RANGE (data->slider), (gdouble)current / GST_SECOND);
/* Re-enable the signal */ /* Re-enable the signal */
g_signal_handler_unblock (data->slider, data->slider_update_signal_id); g_signal_handler_unblock (data->slider, data->slider_update_signal_id);
@ -764,7 +764,7 @@ if (gst_element_query_position (data->playbin, GST_FORMAT_TIME, &current)) {
/* Block the "value-changed" signal, so the slider_cb function is not called /* Block the "value-changed" signal, so the slider_cb function is not called
* (which would trigger a seek the user has not requested) */ * (which would trigger a seek the user has not requested) */
g_signal_handler_block (data->slider, data->slider_update_signal_id); g_signal_handler_block (data->slider, data->slider_update_signal_id);
/* Set the position of the slider to the current pipeline positoin, in SECONDS */ /* Set the position of the slider to the current pipeline position, in SECONDS */
gtk_range_set_value (GTK_RANGE (data->slider), (gdouble)current / GST_SECOND); gtk_range_set_value (GTK_RANGE (data->slider), (gdouble)current / GST_SECOND);
/* Re-enable the signal */ /* Re-enable the signal */
g_signal_handler_unblock (data->slider, data->slider_update_signal_id); g_signal_handler_unblock (data->slider, data->slider_update_signal_id);