From 145d65ff015a4f0aba470d73e7f113b9c46d189a Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 11 Feb 2013 15:11:52 +0100 Subject: Debug time for channel switch. --- video.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'video.c') diff --git a/video.c b/video.c index 839c517..94fcd0b 100644 --- a/video.c +++ b/video.c @@ -4731,8 +4731,13 @@ static void VaapiSyncDecoder(VaapiDecoder * decoder) } #if defined(DEBUG) || defined(AV_INFO) if (!decoder->SyncCounter && decoder->StartCounter < 1000) { +#ifdef DEBUG + Debug(3, "video/vaapi: synced after %d frames %dms\n", + decoder->StartCounter, GetMsTicks() - VideoSwitch); +#else Debug(3, "video/vaapi: synced after %d frames\n", decoder->StartCounter); +#endif decoder->StartCounter += 1000; } #endif @@ -8211,8 +8216,13 @@ static void VdpauSyncDecoder(VdpauDecoder * decoder) } #if defined(DEBUG) || defined(AV_INFO) if (!decoder->SyncCounter && decoder->StartCounter < 1000) { +#ifdef DEBUG + Debug(3, "video/vdpau: synced after %d frames %dms\n", + decoder->StartCounter, GetMsTicks() - VideoSwitch); +#else Debug(3, "video/vdpau: synced after %d frames\n", decoder->StartCounter); +#endif decoder->StartCounter += 1000; } #endif @@ -11034,7 +11044,7 @@ static void PrintVersion(void) #ifdef GIT_REV "(GIT-" GIT_REV ")" #endif - ",\n\t(c) 2009 - 2012 by Johns\n" + ",\n\t(c) 2009 - 2013 by Johns\n" "\tLicense AGPLv3: GNU Affero General Public License version 3\n"); } -- cgit v1.2.3