aacparse: Reset parser when we have caps without codec_data
authorEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 24 Jul 2012 10:22:08 +0000 (12:22 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 24 Jul 2012 10:24:43 +0000 (12:24 +0200)
commit538c131b37ef295c390eba043244952beba35a72
tree9a97e4dd4ec68bd30f17684654a4498ccfb6ba6b
parentf44808338f0ef7b07353c0e9f9ae385cae7ae804
aacparse: Reset parser when we have caps without codec_data

This ensures the detection (and proper downstream caps settings) will
actually happen when we have new incoming caps without codec_data.

This was easily triggered by streams from matroskademux which initially
provided caps with a constructed codec_data, but then pushed new caps
without the codec_data once it detected the stream was adts.
gst/audioparsers/gstaacparse.c