Commit ffc31b5c authored by Laurent Aimar's avatar Laurent Aimar

Fixed a possible NULL dereference in the GME demuxer.

It was added by [5e0e7978].
parent 5e0e7978
......@@ -105,10 +105,14 @@ static int Open (vlc_object_t *obj)
return VLC_ENOMEM;
}
if (data)
{
gme_load_custom (sys->emu, ReaderBlock, data->i_buffer, data);
block_Release(data);
}
else
{
gme_load_custom (sys->emu, ReaderStream, size, demux->s);
block_Release(data);
}
gme_start_track (sys->emu, sys->track_id = 0);
es_format_t fmt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment