playsink: fix the channel of color balance element
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 10 Jun 2015 10:26:38 +0000 (12:26 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 10 Jun 2015 11:12:31 +0000 (13:12 +0200)
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

gst/playback/gstplaysink.c

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