mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gst/avi/gstavidemux.c: Skip entries for streams that don't have a output pad yet, thereby avoiding calling pad functi...
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_stream_scan): Skip entries for streams that don't have a output pad yet, thereby avoiding calling pad functions with a NULL pad. Fixes #556424
This commit is contained in:
parent
8e8e2bf451
commit
1297b556c7
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-10-15 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||
|
||||
* gst/avi/gstavidemux.c: (gst_avi_demux_stream_scan):
|
||||
Skip entries for streams that don't have a output pad yet, thereby
|
||||
avoiding calling pad functions with a NULL pad.
|
||||
Fixes #556424
|
||||
|
||||
2008-10-15 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||
|
||||
* gst/qtdemux/qtdemux.c: Remove previous wrong commit
|
||||
|
|
|
@ -2330,6 +2330,12 @@ gst_avi_demux_stream_scan (GstAviDemux * avi,
|
|||
}
|
||||
|
||||
stream = &avi->stream[stream_nr];
|
||||
if (stream->pad == NULL) {
|
||||
GST_WARNING_OBJECT (avi,
|
||||
"Stream %d does not have an output pad, can't create new index",
|
||||
stream_nr);
|
||||
goto next;
|
||||
}
|
||||
|
||||
/* pre-allocate */
|
||||
if (index_size % 1024 == 0) {
|
||||
|
|
Loading…
Reference in a new issue