summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-22 16:32:40 +0100
committerJohns <johns98@gmx.net>2012-02-22 16:32:40 +0100
commit73b93f1abad410dbcc95c72e0cbaf4486bd29c25 (patch)
tree207cac5ac423e72270c1dc4d77d356fce5130035 /video.c
parent0243b1c8a77fce65ea831971ae5b2a898f3f4d89 (diff)
downloadvdr-plugin-softhddevice-73b93f1abad410dbcc95c72e0cbaf4486bd29c25.tar.gz
vdr-plugin-softhddevice-73b93f1abad410dbcc95c72e0cbaf4486bd29c25.tar.bz2
Makes A/V sync info time configurable.
Diffstat (limited to 'video.c')
-rw-r--r--video.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/video.c b/video.c
index 9f8575e..5399eaf 100644
--- a/video.c
+++ b/video.c
@@ -41,10 +41,13 @@
#define USE_GRAB ///< experimental grab code
#define noUSE_GLX ///< outdated GLX code
#define noUSE_DOUBLEBUFFER ///< use GLX double buffers
-
//#define USE_VAAPI ///< enable vaapi support
//#define USE_VDPAU ///< enable vdpau support
#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
@@ -4386,7 +4389,7 @@ static void VaapiSyncDisplayFrame(VaapiDecoder * decoder)
#if defined(DEBUG) || defined(AV_INFO)
// debug audio/video sync
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",
VideoTimeStampString(video_clock),
abs((video_clock - audio_clock) / 90) <
@@ -7403,7 +7406,7 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder)
#if defined(DEBUG) || defined(AV_INFO)
// debug audio/video sync
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",
VideoTimeStampString(video_clock),
abs((video_clock - audio_clock) / 90) <