mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
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:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user