summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-02-19 22:45:29 +0100
committerJohns <johns98@gmx.net>2012-02-19 22:45:29 +0100
commit1f232db5b499169e3c354b4af4bb59053009f210 (patch)
tree0ade3ea0df984c6a57df72e3a5073a70188bd7bc /video.c
parentc4ad13c53ffa5821f6b6dcc9b4f6b1a93be0019f (diff)
downloadvdr-plugin-softhddevice-1f232db5b499169e3c354b4af4bb59053009f210.tar.gz
vdr-plugin-softhddevice-1f232db5b499169e3c354b4af4bb59053009f210.tar.bz2
Nicer debug output when clock out of range.
Diffstat (limited to 'video.c')
-rw-r--r--video.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/video.c b/video.c
index aa28210..857cca7 100644
--- a/video.c
+++ b/video.c
@@ -4384,8 +4384,10 @@ static void VaapiSyncDisplayFrame(VaapiDecoder * decoder)
|| !(decoder->FramesDisplayed % (50 * 10))) {
Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n",
VideoTimeStampString(video_clock),
- (video_clock - audio_clock) / 90, AudioGetDelay() / 90,
- (int)VideoDeltaPTS / 90, atomic_read(&VideoPacketsFilled));
+ abs((video_clock - audio_clock) / 90) <
+ 9999 ? ((video_clock - audio_clock) / 90) : 88888,
+ AudioGetDelay() / 90, (int)VideoDeltaPTS / 90,
+ atomic_read(&VideoPacketsFilled));
}
#endif
}
@@ -7393,8 +7395,10 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder)
|| !(decoder->FramesDisplayed % (50 * 10))) {
Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n",
VideoTimeStampString(video_clock),
- (video_clock - audio_clock) / 90, AudioGetDelay() / 90,
- (int)VideoDeltaPTS / 90, atomic_read(&VideoPacketsFilled));
+ abs((video_clock - audio_clock) / 90) <
+ 9999 ? ((video_clock - audio_clock) / 90) : 88888,
+ AudioGetDelay() / 90, (int)VideoDeltaPTS / 90,
+ atomic_read(&VideoPacketsFilled));
}
#endif
}
@@ -8599,7 +8603,6 @@ void VideoDrawRenderState(VideoHwDecoder * hw_decoder,
return;
}
Error(_("video/vdpau: draw render state, without vdpau enabled\n"));
- return;
}
#endif