mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
ensure fps is not 0.
This commit is contained in:
parent
64b79f4579
commit
79a1c41938
@ -61,6 +61,11 @@ func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc strin
|
|||||||
return pipelineStr, nil
|
return pipelineStr, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use default fps if not set
|
||||||
|
if fps == 0 {
|
||||||
|
fps = 25
|
||||||
|
}
|
||||||
|
|
||||||
switch rtpCodec.Name {
|
switch rtpCodec.Name {
|
||||||
case codec.VP8().Name:
|
case codec.VP8().Name:
|
||||||
if hwenc == "VAAPI" {
|
if hwenc == "VAAPI" {
|
||||||
|
Loading…
Reference in New Issue
Block a user