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 372b85b9d2)
This commit is contained in:
wm4
2015-05-19 11:11:19 +09:00
committed by Diogo Franco (Kovensky)
parent 4422c1698f
commit a9cac8ade0
+1 -1
View File
@@ -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)