mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
playsink: Use g_signal_handlers_block_by_func()/unblock_by_func() instead of disconnecting and reconnecting
This commit is contained in:
parent
db66b501fe
commit
361e1e2e98
1 changed files with 2 additions and 2 deletions
|
@ -1459,7 +1459,7 @@ update_colorbalance (GstPlaySink * playsink)
|
|||
if (!balance)
|
||||
return;
|
||||
|
||||
g_signal_handlers_disconnect_by_func (balance,
|
||||
g_signal_handlers_block_by_func (balance,
|
||||
G_CALLBACK (colorbalance_value_changed_cb), playsink);
|
||||
|
||||
for (i = 0, l = playsink->colorbalance_channels; l; l = l->next, i++) {
|
||||
|
@ -1483,7 +1483,7 @@ update_colorbalance (GstPlaySink * playsink)
|
|||
playsink->colorbalance_values[i]);
|
||||
}
|
||||
|
||||
g_signal_connect (balance, "value-changed",
|
||||
g_signal_handlers_unblock_by_func (balance,
|
||||
G_CALLBACK (colorbalance_value_changed_cb), playsink);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue