[vlc-commits] demux: sid: use VLC_DEMUXER_
Francois Cartegnie
git at videolan.org
Thu May 3 13:59:35 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 3 11:25:16 2018 +0200| [758fab181ad2ea2a9959d1e2abccdacc782496d2] | committer: Francois Cartegnie
demux: sid: use VLC_DEMUXER_
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=758fab181ad2ea2a9959d1e2abccdacc782496d2
---
modules/demux/sid.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/sid.cpp b/modules/demux/sid.cpp
index 930789b931..d788533b66 100644
--- a/modules/demux/sid.cpp
+++ b/modules/demux/sid.cpp
@@ -208,17 +208,17 @@ static int Demux (demux_t *demux)
block_t *block = block_Alloc( sys->block_size);
if (unlikely(block==NULL))
- return 0;
+ return VLC_DEMUXER_EOF;
if (!sys->tune->getStatus()) {
block_Release (block);
- return 0;
+ return VLC_DEMUXER_EOF;
}
int i_read = sys->player->play ((void*)block->p_buffer, block->i_buffer);
if (i_read <= 0) {
block_Release (block);
- return 0;
+ return VLC_DEMUXER_EOF;
}
block->i_buffer = i_read;
block->i_pts = block->i_dts = VLC_TS_0 + date_Get (&sys->pts);
@@ -229,7 +229,7 @@ static int Demux (demux_t *demux)
date_Increment (&sys->pts, i_read / sys->bytes_per_frame);
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
More information about the vlc-commits
mailing list