mpeg4videoparse: push caps before segment when first data is a GAP
Submitted by Thiago Sousa Santos
While the attached patch fixes it, I'd rather fix this in the baseclass
if possible because it would not require fixing it in all parsers.
Unfortunately I found no sane way of doing it with the current baseclass
methods. And if we have to add a new method, better just use the
event handler just like this patch? Any ideas other than doing
a check for a src pad caps before pushing a segment?
Another option is to store the GAP as a pending event while caps
aren't decided, but then a GAP can be very long and disrupt playback/preroll
if not pushed. So not a good one.