playsink: fix the channel of color balance element

When traversing the color balance element channel list to find the one that
matches with the playsink proxy, the assignation was set to iterator of the
playsink proxy, not the balance element. Thus, the mapping to the values of
the balance element channel was wrong.

This patch fixes the assignation of the color balance element channel, so the
mapping to the channel of the color balance element is fixed.

https://bugzilla.gnome.org/show_bug.cgi?id=750691
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-06-10 12:26:38 +02:00 committed by Sebastian Dröge
parent 50beddd474
commit 7b78a33dc6

View file

@ -5315,7 +5315,7 @@ gst_play_sink_colorbalance_set_value (GstColorBalance * balance,
channels = gst_color_balance_list_channels (balance_element); channels = gst_color_balance_list_channels (balance_element);
for (k = channels; k; k = k->next) { for (k = channels; k; k = k->next) {
GstColorBalanceChannel *tmp = l->data; GstColorBalanceChannel *tmp = k->data;
if (g_strrstr (tmp->label, proxy->label)) { if (g_strrstr (tmp->label, proxy->label)) {
channel = tmp; channel = tmp;