summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-15 13:40:43 +0200
committerwm4 <wm4@nowhere>2015-05-15 13:40:43 +0200
commit372b85b9d20e3bc97120e2506ef9f89224e0f84e (patch)
tree3ef9f016c58506ee177e2c3c528ab99572e2c07c /video/out/vo.c
parent9251fa125f6ebc0f485c93af1809efb7b6da19bd (diff)
downloadmpv-372b85b9d20e3bc97120e2506ef9f89224e0f84e.tar.bz2
mpv-372b85b9d20e3bc97120e2506ef9f89224e0f84e.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.
Diffstat (limited to 'video/out/vo.c')
-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 e670551994..82eb78ff6e 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -604,7 +604,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)