accel: log cleanup

Change-Id: Icd33b5a7d054e83a141f99f2a4fb1b539b125cb0
This commit is contained in:
Pierre Lespagnol
2020-04-30 09:21:18 -04:00
committed by Adrien Béraud
parent 12a7a95a42
commit 0779ecdc52
2 changed files with 3 additions and 3 deletions

View File

@ -446,14 +446,14 @@ MediaDecoder::setupStream()
decoderCtx_->pix_fmt = accel_->getFormat();
if (avcodec_open2(decoderCtx_, inputDecoder_, &options_) < 0) {
// Failed to open codec
JAMI_WARN("Fail to open hardware decoder for %s with %s ", avcodec_get_name(decoderCtx_->codec_id), it.getName().c_str());
JAMI_WARN("Fail to open hardware decoder for %s with %s", avcodec_get_name(decoderCtx_->codec_id), it.getName().c_str());
avcodec_free_context(&decoderCtx_);
decoderCtx_ = nullptr;
accel_.reset();
continue;
} else {
// Succeed to open codec
JAMI_WARN("Using hardware decoding for %s with %s ", avcodec_get_name(decoderCtx_->codec_id), it.getName().c_str());
JAMI_WARN("Using hardware decoding for %s with %s", avcodec_get_name(decoderCtx_->codec_id), it.getName().c_str());
break;
}
}

View File

@ -138,7 +138,7 @@ HardwareAccel::init_device_type(std::string& dev)
return -1;
}
JAMI_WARN("-- Starting %s test for %s with default device.", (type_ == CODEC_ENCODER) ? "encoding" : "decoding", name);
JAMI_WARN("-- Starting %s init for %s with default device.", (type_ == CODEC_ENCODER) ? "encoding" : "decoding", name);
if (name_ == "qsv")
err = init_device(name, "auto", 0);
else