forked from External/mediamtx
do not add an 'all' path automatically if not present in the configuration file
This commit is contained in:
parent
5f3ceb6d1e
commit
08fa61e56d
8 changed files with 58 additions and 28 deletions
|
|
@ -13,7 +13,9 @@ func TestRTMPServerPublish(t *testing.T) {
|
|||
"video",
|
||||
} {
|
||||
t.Run(source, func(t *testing.T) {
|
||||
p, ok := newInstance("hlsDisable: yes\n")
|
||||
p, ok := newInstance("hlsDisable: yes\n" +
|
||||
"paths:\n" +
|
||||
" all:\n")
|
||||
require.Equal(t, true, ok)
|
||||
defer p.close()
|
||||
|
||||
|
|
@ -45,7 +47,9 @@ func TestRTMPServerPublish(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestRTMPServerRead(t *testing.T) {
|
||||
p, ok := newInstance("hlsDisable: yes\n")
|
||||
p, ok := newInstance("hlsDisable: yes\n" +
|
||||
"paths:\n" +
|
||||
" all:\n")
|
||||
require.Equal(t, true, ok)
|
||||
defer p.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue