mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
examples: disconnect scale callback in scrubby
When the position slider's button is released, disconnect the "value_changed" callback to avoid triggering false seek callbacks.
This commit is contained in:
parent
003a0a0ca7
commit
867c864f94
1 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ seek_cb (GtkWidget * widget)
|
|||
GST_DEBUG ("seek because of slider move");
|
||||
|
||||
if (do_seek (widget, TRUE, TRUE)) {
|
||||
g_source_remove (changed_id);
|
||||
g_signal_handler_disconnect (hscale, changed_id);
|
||||
changed_id = 0;
|
||||
}
|
||||
}
|
||||
|
@ -308,7 +308,7 @@ stop_seek (GtkWidget * widget, gpointer user_data)
|
|||
GST_DEBUG ("stop seek");
|
||||
|
||||
if (changed_id) {
|
||||
g_source_remove (changed_id);
|
||||
g_signal_handler_disconnect (hscale, changed_id);
|
||||
changed_id = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue