[vlc-commits] demux: smf: use VLC_DEMUXER_
Francois Cartegnie
git at videolan.org
Thu May 3 13:59:36 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 3 11:29:23 2018 +0200| [b812871599d6c5b902199300884c8004b851bd7c] | committer: Francois Cartegnie
demux: smf: use VLC_DEMUXER_
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b812871599d6c5b902199300884c8004b851bd7c
---
modules/demux/smf.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index 35fa8833a4..7c8ac03b39 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -456,20 +456,20 @@ static int Demux (demux_t *demux)
es_out_SetPCR (demux->out, sys->tick);
sys->tick += TICK;
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
/* MIDI events in chronological order across all tracks */
uint64_t pulse = sys->pulse;
if (ReadEvents (demux, &pulse, demux->out))
- return VLC_EGENERIC;
+ return VLC_DEMUXER_EGENERIC;
if (pulse == UINT64_MAX)
- return 0; /* all tracks are done */
+ return VLC_DEMUXER_EOF; /* all tracks are done */
sys->pulse = pulse;
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
static int Seek (demux_t *demux, mtime_t pts)
More information about the vlc-commits
mailing list