From dbbf54720cf0bb5bbbeafb1656dd9714eff43d02 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 7 Apr 2011 18:30:49 +0200 Subject: [PATCH] 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. --- gst/audioparsers/gstmpegaudioparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstmpegaudioparse.c b/gst/audioparsers/gstmpegaudioparse.c index 9452e57..d3c8d5e 100644 --- a/gst/audioparsers/gstmpegaudioparse.c +++ b/gst/audioparsers/gstmpegaudioparse.c @@ -548,7 +548,7 @@ gst_mpeg_audio_parse_check_valid_frame (GstBaseParse * parse, 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 */ *skipsize = off + 2; return FALSE; -- 2.7.4