Update panic message for RTMP

This commit is contained in:
Alexey Khit
2022-08-26 10:10:45 +03:00
parent d3adaf05b1
commit c019dc58b1

View File

@@ -2,6 +2,7 @@ package rtmp
import (
"encoding/json"
"fmt"
"github.com/AlexxIT/go2rtc/pkg/streamer"
"strconv"
)
@@ -16,7 +17,7 @@ func (c *Client) GetTrack(media *streamer.Media, codec *streamer.Codec) *streame
return track
}
}
panic("wrong codec")
panic(fmt.Sprintf("wrong media/codec: %+v %+v", media, codec))
}
func (c *Client) Start() error {