From 644e23a0f58cd3cb16a07854ab1dde3d9bcb7ad3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 2 Feb 2017 08:51:40 +0100 Subject: tvi_dummy: don't return bad dummy PTS This makes the player spam timestamp warnings. Return NOPTS instead. --- stream/tvi_dummy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stream/tvi_dummy.c b/stream/tvi_dummy.c index 571dace9ab..9eee9437f0 100644 --- a/stream/tvi_dummy.c +++ b/stream/tvi_dummy.c @@ -20,6 +20,7 @@ #include "config.h" #include +#include "common/common.h" #include "video/img_fourcc.h" #include "tv.h" @@ -105,7 +106,7 @@ static int do_control(priv_t *priv, int cmd, void *arg) static double grab_video_frame(priv_t *priv, char *buffer, int len) { memset(buffer, 0x42, len); - return 1; + return MP_NOPTS_VALUE; } static int get_video_framesize(priv_t *priv) @@ -117,7 +118,7 @@ static int get_video_framesize(priv_t *priv) static double grab_audio_frame(priv_t *priv, char *buffer, int len) { memset(buffer, 0x42, len); - return 1; + return MP_NOPTS_VALUE; } static int get_audio_framesize(priv_t *priv) -- cgit v1.2.3