diff options
author | Johns <johns98@gmx.net> | 2012-08-28 19:15:11 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-08-28 19:15:11 +0200 |
commit | 3df9acc0349dc70ed764503f6aabdd53d464d5b3 (patch) | |
tree | 137ef9164b31d46174ee28eb2ce4b3f8a9da7719 | |
parent | d9c9061a7ce0c75bfa45a0f33b115ad948ddc06d (diff) | |
download | vdr-plugin-softhddevice-3df9acc0349dc70ed764503f6aabdd53d464d5b3.tar.gz vdr-plugin-softhddevice-3df9acc0349dc70ed764503f6aabdd53d464d5b3.tar.bz2 |
Add number of buffered video output frames to info.
-rw-r--r-- | video.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -4665,11 +4665,13 @@ static void VaapiSyncDecoder(VaapiDecoder * decoder) if (!err) { VaapiMessage(0, NULL); } - Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n", + Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d+%d v-buf\n", Timestamp2String(video_clock), abs((video_clock - audio_clock) / 90) < 8888 ? ((video_clock - audio_clock) / 90) : 8888, - AudioGetDelay() / 90, (int)VideoDeltaPTS / 90, VideoGetBuffers()); + AudioGetDelay() / 90, (int)VideoDeltaPTS / 90, VideoGetBuffers(), + (1 + decoder->Interlaced) * atomic_read(&decoder->SurfacesFilled) + - decoder->SurfaceField); if (!(decoder->FramesDisplayed % (5 * 60 * 60))) { VaapiPrintFrames(decoder); } @@ -8010,11 +8012,13 @@ static void VdpauSyncDecoder(VdpauDecoder * decoder) if (!err) { VdpauMessage(0, NULL); } - Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d v-buf\n", + Info("video: %s%+5" PRId64 " %4" PRId64 " %3d/\\ms %3d+%d v-buf\n", Timestamp2String(video_clock), abs((video_clock - audio_clock) / 90) < 8888 ? ((video_clock - audio_clock) / 90) : 8888, - AudioGetDelay() / 90, (int)VideoDeltaPTS / 90, VideoGetBuffers()); + AudioGetDelay() / 90, (int)VideoDeltaPTS / 90, VideoGetBuffers(), + (1 + decoder->Interlaced) * atomic_read(&decoder->SurfacesFilled) + - decoder->SurfaceField); if (!(decoder->FramesDisplayed % (5 * 60 * 60))) { VdpauPrintFrames(decoder); } |