Commit 1a26c53f authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

bluray: use VLC_DEMUXER_ defines for Demux() return values

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 887ce251
...@@ -1829,7 +1829,7 @@ static int blurayDemux(demux_t *p_demux) ...@@ -1829,7 +1829,7 @@ static int blurayDemux(demux_t *p_demux)
block_t *p_block = block_Alloc(NB_TS_PACKETS * (int64_t)BD_TS_PACKET_SIZE); block_t *p_block = block_Alloc(NB_TS_PACKETS * (int64_t)BD_TS_PACKET_SIZE);
if (!p_block) if (!p_block)
return -1; return VLC_DEMUXER_EGENERIC;
int nread; int nread;
...@@ -1900,8 +1900,8 @@ static int blurayDemux(demux_t *p_demux) ...@@ -1900,8 +1900,8 @@ static int blurayDemux(demux_t *p_demux)
if (nread <= 0) { if (nread <= 0) {
block_Release(p_block); block_Release(p_block);
if (nread < 0) if (nread < 0)
return -1; return VLC_DEMUXER_EGENERIC;
return 1; return VLC_DEMUXER_SUCCESS;
} }
p_block->i_buffer = nread; p_block->i_buffer = nread;
...@@ -1912,5 +1912,5 @@ static int blurayDemux(demux_t *p_demux) ...@@ -1912,5 +1912,5 @@ static int blurayDemux(demux_t *p_demux)
p_sys->b_flushed = false; p_sys->b_flushed = false;
return 1; return VLC_DEMUXER_SUCCESS;
} }
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