mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Makes A/V sync info time configurable.
This commit is contained in:
parent
0243b1c8a7
commit
73b93f1aba
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ GIT_REV = $(shell git describe --always 2>/dev/null)
|
|||||||
### Configuration (edit this for your needs)
|
### Configuration (edit this for your needs)
|
||||||
|
|
||||||
CONFIG := #-DDEBUG
|
CONFIG := #-DDEBUG
|
||||||
CONFIG += -DAV_INFO # debug a/v sync
|
CONFIG += -DAV_INFO -DAV_INFO_TIME=60 # debug a/v sync
|
||||||
#CONFIG += -DHAVE_PTHREAD_NAME # supports new pthread_setname_np
|
#CONFIG += -DHAVE_PTHREAD_NAME # supports new pthread_setname_np
|
||||||
#CONFIG += -DUSE_TS_AUDIO # build new ts audio parser
|
#CONFIG += -DUSE_TS_AUDIO # build new ts audio parser
|
||||||
CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU")
|
CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU")
|
||||||
|
9
video.c
9
video.c
@ -41,10 +41,13 @@
|
|||||||
#define USE_GRAB ///< experimental grab code
|
#define USE_GRAB ///< experimental grab code
|
||||||
#define noUSE_GLX ///< outdated GLX code
|
#define noUSE_GLX ///< outdated GLX code
|
||||||
#define noUSE_DOUBLEBUFFER ///< use GLX double buffers
|
#define noUSE_DOUBLEBUFFER ///< use GLX double buffers
|
||||||
|
|
||||||
//#define USE_VAAPI ///< enable vaapi support
|
//#define USE_VAAPI ///< enable vaapi support
|
||||||
//#define USE_VDPAU ///< enable vdpau support
|
//#define USE_VDPAU ///< enable vdpau support
|
||||||
#define noUSE_BITMAP ///< use vdpau bitmap surface
|
#define noUSE_BITMAP ///< use vdpau bitmap surface
|
||||||
|
//#define AV_INFO ///< log a/v sync informations
|
||||||
|
#ifndef AV_INFO_TIME
|
||||||
|
#define AV_INFO_TIME (50 * 60) ///< a/v info every minute
|
||||||
|
#endif
|
||||||
|
|
||||||
#define USE_VIDEO_THREAD ///< run decoder in an own thread
|
#define USE_VIDEO_THREAD ///< run decoder in an own thread
|
||||||
|
|
||||||
@ -4386,7 +4389,7 @@ static void VaapiSyncDisplayFrame(VaapiDecoder * decoder)
|
|||||||
#if defined(DEBUG) || defined(AV_INFO)
|
#if defined(DEBUG) || defined(AV_INFO)
|
||||||
// debug audio/video sync
|
// debug audio/video sync
|
||||||
if (decoder->DupNextFrame || decoder->DropNextFrame
|
if (decoder->DupNextFrame || decoder->DropNextFrame
|
||||||
|| !(decoder->FramesDisplayed % (50 * 10))) {
|
|| !(decoder->FramesDisplayed % AV_INFO_TIME)) {
|
||||||
Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n",
|
Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n",
|
||||||
VideoTimeStampString(video_clock),
|
VideoTimeStampString(video_clock),
|
||||||
abs((video_clock - audio_clock) / 90) <
|
abs((video_clock - audio_clock) / 90) <
|
||||||
@ -7403,7 +7406,7 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder)
|
|||||||
#if defined(DEBUG) || defined(AV_INFO)
|
#if defined(DEBUG) || defined(AV_INFO)
|
||||||
// debug audio/video sync
|
// debug audio/video sync
|
||||||
if (decoder->DupNextFrame || decoder->DropNextFrame
|
if (decoder->DupNextFrame || decoder->DropNextFrame
|
||||||
|| !(decoder->FramesDisplayed % (50 * 10))) {
|
|| !(decoder->FramesDisplayed % AV_INFO_TIME)) {
|
||||||
Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n",
|
Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n",
|
||||||
VideoTimeStampString(video_clock),
|
VideoTimeStampString(video_clock),
|
||||||
abs((video_clock - audio_clock) / 90) <
|
abs((video_clock - audio_clock) / 90) <
|
||||||
|
Loading…
Reference in New Issue
Block a user