do not add an 'all' path automatically if not present in the configuration file

This commit is contained in:
aler9 2021-11-06 12:51:38 +01:00
parent 5f3ceb6d1e
commit 08fa61e56d
8 changed files with 58 additions and 28 deletions

View file

@ -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()