summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-15 13:40:43 +0200
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-19 11:11:19 +0900
commita9cac8ade00298c32e38f44fea2283c8a0c16fa9 (patch)
tree71a6a5a9e91505221b5f06734e4235750b08baf9
parent4422c1698f43ef41525ca64fe7c9afc43a4b411c (diff)
downloadmpv-a9cac8ade00298c32e38f44fea2283c8a0c16fa9.tar.bz2
mpv-a9cac8ade00298c32e38f44fea2283c8a0c16fa9.tar.xz
vo: remove suspicious line
pts can never be 0 or negative. If there is no frame, some code below catches this case by checking hasframe. (cherry picked from commit 372b85b9d20e3bc97120e2506ef9f89224e0f84e)
-rw-r--r--video/out/vo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 3e19006862..f7e5c89012 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -588,7 +588,7 @@ static bool render_frame(struct vo *vo)
int64_t duration = in->frame_duration;
struct mp_image *img = in->frame_queued;
- if (!img && (!in->vsync_timed || in->paused || pts <= 0))
+ if (!img && (!in->vsync_timed || in->paused))
goto nothing_done;
if (in->vsync_timed && !in->hasframe)