tvi_dummy: don't return bad dummy PTS

This makes the player spam timestamp warnings. Return NOPTS instead.
This commit is contained in:
wm4
2017-02-02 08:51:40 +01:00
parent 738de7d3fe
commit 644e23a0f5

View File

@@ -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)