SrtReceiverSource for broadcasted stream

Implemented dedicated source, with UI for creation and saving appropriate settings.
Also updated info and imgui visitors accordingly
This commit is contained in:
Bruno Herbelin
2022-01-24 20:18:33 +01:00
parent f5f7d3c154
commit 2ae0ef40d4
24 changed files with 330 additions and 70 deletions

View File

@@ -560,13 +560,15 @@ bool MediaPlayer::isImage() const
std::string MediaPlayer::decoderName()
{
// decoder_name_ not initialized
if (decoder_name_.empty()) {
// try to know if it is a hardware decoder
decoder_name_ = GstToolkit::used_gpu_decoding_plugins(pipeline_);
// nope, then it is a sofware decoder
if (decoder_name_.empty())
decoder_name_ = "software";
if (pipeline_) {
// decoder_name_ not initialized
if (decoder_name_.empty()) {
// try to know if it is a hardware decoder
decoder_name_ = GstToolkit::used_gpu_decoding_plugins(pipeline_);
// nope, then it is a sofware decoder
if (decoder_name_.empty())
decoder_name_ = "software";
}
}
return decoder_name_;