mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
playsink: Connect to the value-changed signal of the child colorbalance element and proxy it
This commit is contained in:
parent
c290fabf36
commit
67bbfdde4e
1 changed files with 8 additions and 0 deletions
|
@ -1694,6 +1694,10 @@ gen_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async)
|
|||
gst_object_unref (playsink->colorbalance_element);
|
||||
}
|
||||
playsink->colorbalance_element = find_color_balance_element (chain->sink);
|
||||
if (playsink->colorbalance_element) {
|
||||
g_signal_connect (playsink->colorbalance_element, "value-changed",
|
||||
G_CALLBACK (colorbalance_value_changed_cb), playsink);
|
||||
}
|
||||
GST_OBJECT_UNLOCK (playsink);
|
||||
|
||||
if (!(playsink->flags & GST_PLAY_FLAG_NATIVE_VIDEO)
|
||||
|
@ -1880,6 +1884,10 @@ setup_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async)
|
|||
gst_object_unref (playsink->colorbalance_element);
|
||||
}
|
||||
playsink->colorbalance_element = find_color_balance_element (chain->sink);
|
||||
if (playsink->colorbalance_element) {
|
||||
g_signal_connect (playsink->colorbalance_element, "value-changed",
|
||||
G_CALLBACK (colorbalance_value_changed_cb), playsink);
|
||||
}
|
||||
GST_OBJECT_UNLOCK (playsink);
|
||||
|
||||
if (chain->conv) {
|
||||
|
|
Loading…
Reference in a new issue