diff options
author | wm4 <wm4@nowhere> | 2016-06-08 12:04:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-08 12:04:56 +0200 |
commit | 69d5be1ee91d6189ffe8fe2e5c5583e639de92f6 (patch) | |
tree | 82589c26601bcc7ba3713634296f721ef5ea0596 /player | |
parent | bd9bba40ee8e2d11ecfa987b744667dc221870d3 (diff) | |
download | mpv-69d5be1ee91d6189ffe8fe2e5c5583e639de92f6.tar.bz2 mpv-69d5be1ee91d6189ffe8fe2e5c5583e639de92f6.tar.xz |
player: remove unused return value
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/player/playloop.c b/player/playloop.c index 87acfe3cc7..311bbd178d 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -180,18 +180,17 @@ void reset_playback_state(struct MPContext *mpctx) #endif } -// return -1 if seek failed (non-seekable stream?), 0 otherwise -static int mp_seek(MPContext *mpctx, struct seek_params seek) +static void mp_seek(MPContext *mpctx, struct seek_params seek) { struct MPOpts *opts = mpctx->opts; if (!mpctx->demuxer || seek.type == MPSEEK_NONE || seek.amount == MP_NOPTS_VALUE) - return -1; + return; if (!mpctx->demuxer->seekable) { MP_ERR(mpctx, "Cannot seek in this file.\n"); MP_ERR(mpctx, "You can forcibly enable it with '--force-seeking=yes'.\n"); - return -1; + return; } bool hr_seek_very_exact = seek.exact == MPSEEK_VERY_EXACT; @@ -292,8 +291,6 @@ static int mp_seek(MPContext *mpctx, struct seek_params seek) mp_notify(mpctx, MPV_EVENT_SEEK, NULL); mp_notify(mpctx, MPV_EVENT_TICK, NULL); - - return 0; } // This combines consecutive seek requests. |