diff --git a/generic-pc/audio.cpp b/generic-pc/audio.cpp index 8d6f317..ac2e6ec 100644 --- a/generic-pc/audio.cpp +++ b/generic-pc/audio.cpp @@ -201,6 +201,7 @@ void cAudio::getAudioInfo(int &type, int &layer, int &freq, int &bitrate, int &m freq = 0; bitrate = 0; /* not used, but easy to get :-) */ mode = 0; /* default: stereo */ + printf("cAudio::getAudioInfo c %p\n", c); if (c) { type = (c->codec_id != AV_CODEC_ID_MP2); /* only mpeg / not mpeg is indicated */ freq = c->sample_rate; @@ -240,7 +241,7 @@ void cAudio::getAudioInfo(int &type, int &layer, int &freq, int &bitrate, int &m } } lt_debug("%s t: %d l: %d f: %d b: %d m: %d codec_id: %x\n", - __func__, type, layer, freq, bitrate, mode, c->codec_id); + __func__, type, layer, freq, bitrate, mode, c?c->codec_id:-1); }; void cAudio::SetSRS(int /*iq_enable*/, int /*nmgr_enable*/, int /*iq_mode*/, int /*iq_level*/)