playsink: Connect to the value-changed signal of the child colorbalance element and proxy it

This commit is contained in:
Sebastian Dröge 2012-06-25 15:21:07 +02:00
parent c290fabf36
commit 67bbfdde4e

View file

@ -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) {