From f34e1a0deea45e5ed200f1d8daa36ca92d899e92 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Jun 2017 17:54:02 +0200 Subject: demux: replace custom return codes with CONTROL_ ones This is more uniform, and potentially gets rid of some past copyrights. It might be that this subtly changes caching behavior (it seems before this, it synced to the demuxer if the length was unknown, which is not what we want.) --- demux/demux_raw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'demux/demux_raw.c') diff --git a/demux/demux_raw.c b/demux/demux_raw.c index 7dffa1caa7..d9e7ebb63a 100644 --- a/demux/demux_raw.c +++ b/demux/demux_raw.c @@ -306,13 +306,13 @@ static int raw_control(demuxer_t *demuxer, int cmd, void *arg) stream_t *s = demuxer->stream; int64_t end = 0; if (stream_control(s, STREAM_CTRL_GET_SIZE, &end) != STREAM_OK) - return DEMUXER_CTRL_DONTKNOW; + return CONTROL_FALSE; *((double *) arg) = (end / p->frame_size) / p->frame_rate; - return DEMUXER_CTRL_OK; + return CONTROL_OK; } default: - return DEMUXER_CTRL_NOTIMPL; + return CONTROL_UNKNOWN; } } -- cgit v1.2.3