From d3625d72ed510d8ed159d9c23f933c141690b063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 14 Nov 2007 18:08:15 +0000 Subject: [PATCH] * print the codec id a little later when tracing is on, when the id is better knwon git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22928 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/avcodec/avcodec.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/add-ons/media/plugins/avcodec/avcodec.cpp b/src/add-ons/media/plugins/avcodec/avcodec.cpp index 0f154a6ba5..52f6686af5 100644 --- a/src/add-ons/media/plugins/avcodec/avcodec.cpp +++ b/src/add-ons/media/plugins/avcodec/avcodec.cpp @@ -124,10 +124,6 @@ avCodec::Setup(media_format *ioEncodedFormat, const void *infoBuffer, size_t inf if (BMediaFormats().GetCodeFor(*ioEncodedFormat, gCodecTable[i].family, &descr) == B_OK && gCodecTable[i].type == ioEncodedFormat->type) { - PRINT((" codec id = \"%c%c%c%c\"\n", (descr.u.avi.codec >> 24) & 0xff, - (descr.u.avi.codec >> 16) & 0xff, - (descr.u.avi.codec >> 8) & 0xff, - descr.u.avi.codec & 0xff)); switch(gCodecTable[i].family) { case B_WAV_FORMAT_FAMILY: cid = descr.u.wav.codec; @@ -151,6 +147,9 @@ avCodec::Setup(media_format *ioEncodedFormat, const void *infoBuffer, size_t inf puts("ERR family"); return B_ERROR; } + PRINT((" codec id = \"%c%c%c%c\"\n", (cid >> 24) & 0xff, + (cid >> 16) & 0xff, (cid >> 8) & 0xff, cid & 0xff)); + if (gCodecTable[i].family == descr.family && gCodecTable[i].fourcc == cid) { fCodec = avcodec_find_decoder(gCodecTable[i].id); if (!fCodec) {