diff --git a/generic-pc/audio.cpp b/generic-pc/audio.cpp index 28effe3..e6cda85 100644 --- a/generic-pc/audio.cpp +++ b/generic-pc/audio.cpp @@ -239,7 +239,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 : 0); }; void cAudio::SetSRS(int /*iq_enable*/, int /*nmgr_enable*/, int /*iq_mode*/, int /*iq_level*/)