summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-02 08:51:40 +0100
committerwm4 <wm4@nowhere>2017-02-02 08:51:40 +0100
commit644e23a0f58cd3cb16a07854ab1dde3d9bcb7ad3 (patch)
treefb6a3fa7bce66472152d2a9b9b598720c8a85102
parent738de7d3fe1b48c5ba71026bbceeaab3b37ca7ea (diff)
downloadmpv-644e23a0f58cd3cb16a07854ab1dde3d9bcb7ad3.tar.bz2
mpv-644e23a0f58cd3cb16a07854ab1dde3d9bcb7ad3.tar.xz
tvi_dummy: don't return bad dummy PTS
This makes the player spam timestamp warnings. Return NOPTS instead.
-rw-r--r--stream/tvi_dummy.c5
1 files 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 <stdio.h>
+#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)