Commit b8128715 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: smf: use VLC_DEMUXER_

parent 758fab18
......@@ -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)
......
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