mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
playback/player: Block value-changed signal when playing an URI to prevent spurious seeks
This commit is contained in:
parent
5743b39d4e
commit
d30c65f9f8
1 changed files with 4 additions and 0 deletions
|
@ -409,7 +409,11 @@ static void
|
|||
play_current_uri (GtkPlay * play, GList * uri, const gchar * ext_suburi)
|
||||
{
|
||||
/* reset the button/widget state to default */
|
||||
g_signal_handlers_block_by_func (play->seekbar,
|
||||
seekbar_value_changed_cb, play);
|
||||
gtk_range_set_range (GTK_RANGE (play->seekbar), 0, 0);
|
||||
g_signal_handlers_unblock_by_func (play->seekbar,
|
||||
seekbar_value_changed_cb, play);
|
||||
gtk_widget_set_sensitive (play->prev_button, g_list_previous (uri) != NULL);
|
||||
gtk_widget_set_sensitive (play->next_button, g_list_next (uri) != NULL);
|
||||
gtk_label_set_label (play->rate_label, NULL);
|
||||
|
|
Loading…
Reference in a new issue