Skip to content

Commit

Permalink
fix #89
Browse files Browse the repository at this point in the history
  • Loading branch information
deepch committed Feb 16, 2022
1 parent 44cf6c4 commit 7beb35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storageStreamChannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (obj *StorageST) HlsMuxerSetFPS(uuid string, channelID string, fps int) {
obj.mutex.Lock()
defer obj.mutex.Unlock()
if tmp, ok := obj.Streams[uuid]; ok {
if channelTmp, ok := tmp.Channels[channelID]; ok {
if channelTmp, ok := tmp.Channels[channelID]; ok && channelTmp.hlsMuxer != nil {
channelTmp.hlsMuxer.SetFPS(fps)
tmp.Channels[channelID] = channelTmp
obj.Streams[uuid] = tmp
Expand Down

0 comments on commit 7beb35a

Please sign in to comment.