mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
seek: wait for the spinbutton widget
Wait for the spinbutton widget before trying to update it when the volume changed callback is called.
This commit is contained in:
parent
a8ffd4e28c
commit
6633910500
1 changed files with 3 additions and 0 deletions
|
@ -1135,6 +1135,9 @@ volume_notify_cb (GstElement * pipeline, GParamSpec * arg, gpointer user_dat)
|
|||
{
|
||||
gdouble cur_volume, new_volume;
|
||||
|
||||
if (volume_spinbutton == NULL)
|
||||
return;
|
||||
|
||||
g_object_get (pipeline, "volume", &new_volume, NULL);
|
||||
cur_volume = gtk_spin_button_get_value (GTK_SPIN_BUTTON (volume_spinbutton));
|
||||
if (fabs (cur_volume - new_volume) > 0.001) {
|
||||
|
|
Loading…
Reference in a new issue