mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
tvi_dummy: don't return bad dummy PTS
This makes the player spam timestamp warnings. Return NOPTS instead.
This commit is contained in:
parent
738de7d3fe
commit
644e23a0f5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user