audioencoder: changed is verily the opposite of equal
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 22 Sep 2011 13:38:22 +0000 (15:38 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 22 Sep 2011 13:47:06 +0000 (15:47 +0200)
gst-libs/gst/audio/gstaudioencoder.c

index 80f5cd0..17dceee 100644 (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) {