mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Nicer debug output when clock out of range.
This commit is contained in:
parent
c4ad13c53f
commit
1f232db5b4
13
video.c
13
video.c
@ -4384,8 +4384,10 @@ static void VaapiSyncDisplayFrame(VaapiDecoder * decoder)
|
|||||||
|| !(decoder->FramesDisplayed % (50 * 10))) {
|
|| !(decoder->FramesDisplayed % (50 * 10))) {
|
||||||
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),
|
||||||
(video_clock - audio_clock) / 90, AudioGetDelay() / 90,
|
abs((video_clock - audio_clock) / 90) <
|
||||||
(int)VideoDeltaPTS / 90, atomic_read(&VideoPacketsFilled));
|
9999 ? ((video_clock - audio_clock) / 90) : 88888,
|
||||||
|
AudioGetDelay() / 90, (int)VideoDeltaPTS / 90,
|
||||||
|
atomic_read(&VideoPacketsFilled));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -7393,8 +7395,10 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder)
|
|||||||
|| !(decoder->FramesDisplayed % (50 * 10))) {
|
|| !(decoder->FramesDisplayed % (50 * 10))) {
|
||||||
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),
|
||||||
(video_clock - audio_clock) / 90, AudioGetDelay() / 90,
|
abs((video_clock - audio_clock) / 90) <
|
||||||
(int)VideoDeltaPTS / 90, atomic_read(&VideoPacketsFilled));
|
9999 ? ((video_clock - audio_clock) / 90) : 88888,
|
||||||
|
AudioGetDelay() / 90, (int)VideoDeltaPTS / 90,
|
||||||
|
atomic_read(&VideoPacketsFilled));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -8599,7 +8603,6 @@ void VideoDrawRenderState(VideoHwDecoder * hw_decoder,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Error(_("video/vdpau: draw render state, without vdpau enabled\n"));
|
Error(_("video/vdpau: draw render state, without vdpau enabled\n"));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user