Dump debug info after dmx is assured to be != NULL.

This commit is contained in:
Moritz Bunkus 2004-01-19 22:02:30 +00:00
parent 4ed27bca48
commit ef59277f48

View File

@ -628,14 +628,14 @@ int real_reader_c::read(generic_packetizer_c *) {
}
dmx = find_demuxer(id);
mxverb(4, "real_reader: %u/'%s': timecode = %u\n", dmx->id, ti->fname,
timecode);
if (dmx == NULL) {
io->skip(length - 12);
return EMOREDATA;
}
mxverb(4, "real_reader: %u/'%s': timecode = %u\n", dmx->id, ti->fname,
timecode);
length -= 12;
chunk = (unsigned char *)safemalloc(length);