Handle RateControl being undef
parent
2d06dc98a1
commit
6a5abeca83
|
@ -309,6 +309,8 @@ sub profiles {
|
||||||
my $Resolution = $VideoEncoderConfiguration->get_Resolution();
|
my $Resolution = $VideoEncoderConfiguration->get_Resolution();
|
||||||
my $Width = $Resolution ? $Resolution->get_Width() : 0;
|
my $Width = $Resolution ? $Resolution->get_Width() : 0;
|
||||||
my $Height = $Resolution ? $Resolution->get_Height() : 0;
|
my $Height = $Resolution ? $Resolution->get_Height() : 0;
|
||||||
|
my $RateControl = $VideoEncoderConfiguration->get_RateControl();
|
||||||
|
my $FrameRateLimit = $RateControl ? $RateControl->get_FrameRateLimit() : 0;
|
||||||
|
|
||||||
push @profiles, [
|
push @profiles, [
|
||||||
$token,
|
$token,
|
||||||
|
@ -316,7 +318,7 @@ sub profiles {
|
||||||
$VideoEncoderConfiguration->get_Encoding(),
|
$VideoEncoderConfiguration->get_Encoding(),
|
||||||
$Width,
|
$Width,
|
||||||
$Height,
|
$Height,
|
||||||
$VideoEncoderConfiguration->get_RateControl()->get_FrameRateLimit(),
|
$FrameRateLimit,
|
||||||
$streamtype,
|
$streamtype,
|
||||||
$Uri,
|
$Uri,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue