summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-17 16:45:27 +0200
committerJohns <johns98@gmx.net>2012-04-17 16:45:27 +0200
commit79e78bf235b9e15b058ec02da5926c6d6577300b (patch)
tree8b2b32198b4684cbf44fc5df6c4c9bcc9eb1b7e8 /codec.c
parentc9ef8b759a6fc3e8595630e7bdb8f585f035e8da (diff)
downloadvdr-plugin-softhddevice-79e78bf235b9e15b058ec02da5926c6d6577300b.tar.gz
vdr-plugin-softhddevice-79e78bf235b9e15b058ec02da5926c6d6577300b.tar.bz2
Show black picture, if no video stream available.
New audio ring code. New audio filters (first part).
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/codec.c b/codec.c
index 122f8ab..605d6e1 100644
--- a/codec.c
+++ b/codec.c
@@ -949,8 +949,14 @@ static void CodecAudioSetClock(AudioDecoder * audio_decoder, int64_t pts)
av_resample_compensate(audio_decoder->AvResample,
audio_decoder->DriftCorr / 10, distance);
}
- Debug(3, "codec/audio: drift(%6d) %8dus %5d\n", audio_decoder->DriftCorr,
- drift * 1000 / 90, corr);
+ if (1) {
+ static int c;
+
+ if (!(c++ % 10)) {
+ Debug(3, "codec/audio: drift(%6d) %8dus %5d\n",
+ audio_decoder->DriftCorr, drift * 1000 / 90, corr);
+ }
+ }
}
/**