mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
accel: log cleanup
Change-Id: Icd33b5a7d054e83a141f99f2a4fb1b539b125cb0
This commit is contained in:

committed by
Adrien Béraud

parent
12a7a95a42
commit
0779ecdc52
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user