audioencoder: changed is verily the opposite of equal

This commit is contained in:
Mark Nauwelaerts 2011-09-22 15:38:22 +02:00
parent b420dd54ea
commit 2a362a95f7

View file

@ -983,7 +983,7 @@ gst_audio_encoder_sink_setcaps (GstPad * pad, GstCaps * caps)
if (!gst_audio_info_from_caps (state, caps))
goto refuse_caps;
changed = audio_info_is_equal (state, old_state);
changed = !audio_info_is_equal (state, old_state);
gst_audio_info_free (old_state);
if (changed) {