Commit 96b02891 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

bluray: Fix a memory leak introduced in previous commit.

parent 3bc5c401
......@@ -1001,7 +1001,10 @@ static int blurayDemux(demux_t *p_demux)
nread = bd_read_ext(p_sys->bluray, p_block->p_buffer,
NB_TS_PACKETS * BD_TS_PACKET_SIZE, &e);
if (nread < 0)
{
block_Release(p_block);
return -1;
}
if (nread == 0) {
if (e.event == BD_EVENT_NONE)
msg_Info(p_demux, "We reached the end of a title");
......
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