gst/avi/gstavidemux.c: Handle JUNK chunks inside data section. Prevents warnings.

Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_stream_data):
Handle JUNK chunks inside data section. Prevents warnings.
This commit is contained in:
Ronald S. Bultje 2004-04-11 22:09:26 +00:00
parent 0b122a2891
commit d5153a8691
2 changed files with 19 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2004-04-11 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/avi/gstavidemux.c: (gst_avi_demux_stream_data):
Handle JUNK chunks inside data section. Prevents warnings.
2004-04-11 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),

View file

@ -1393,16 +1393,21 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
return FALSE;
/* Support for rec-list files */
if (tag == GST_RIFF_TAG_LIST) {
if (!(tag = gst_riff_peek_list (riff)))
return FALSE;
if (tag == GST_RIFF_rec) {
/* Simply skip the list */
if (!gst_riff_read_list (riff, &tag))
switch (tag) {
case GST_RIFF_TAG_LIST:
if (!(tag = gst_riff_peek_list (riff)))
return FALSE;
if (!(tag = gst_riff_peek_tag (riff, NULL)))
return FALSE;
}
if (tag == GST_RIFF_rec) {
/* Simply skip the list */
if (!gst_riff_read_list (riff, &tag))
return FALSE;
if (!(tag = gst_riff_peek_tag (riff, NULL)))
return FALSE;
}
break;
case GST_RIFF_TAG_JUNK:
return gst_riff_read_skip (riff);
}
stream_nr = CHUNKID_TO_STREAMNR (tag);