mpegaudioparse: relax sync match a bit when draining

... to at least allow initial caps change (but no further caps jitter).
Fixes unit test again after previous change.
This commit is contained in:
Mark Nauwelaerts 2011-04-07 18:30:49 +02:00 committed by Tim-Philipp Müller
parent 96fbcb83c3
commit dbbf54720c

View file

@ -548,7 +548,7 @@ gst_mpeg_audio_parse_check_valid_frame (GstBaseParse * parse,
return FALSE; return FALSE;
} }
} }
} else if (draining && lost_sync && caps_change) { } else if (draining && lost_sync && caps_change && mp3parse->rate > 0) {
/* avoid caps jitter that we can't be sure of */ /* avoid caps jitter that we can't be sure of */
*skipsize = off + 2; *skipsize = off + 2;
return FALSE; return FALSE;