Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
524d467a
Commit
524d467a
authored
Nov 18, 2004
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing test from a previous patch, the running check needs to apply as well
svn path=/icecast/trunk/icecast/; revision=8223
parent
b2b28507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
src/admin.c
src/admin.c
+16
-9
No files found.
src/admin.c
View file @
524d467a
...
@@ -339,15 +339,22 @@ void admin_handle_request(client_t *client, char *uri)
...
@@ -339,15 +339,22 @@ void admin_handle_request(client_t *client, char *uri)
}
}
else
else
{
{
if
(
!
source
->
shoutcast_compat
)
{
if
(
source
->
running
==
0
)
if
(
source
->
running
==
0
)
{
{
avl_tree_unlock
(
global
.
source_tree
);
INFO2
(
"Received admin command %s on unavailable mount
\"
%s
\"
"
,
INFO2
(
"Received admin command %s on unavailable mount
\"
%s
\"
"
,
command_string
,
mount
);
command_string
,
mount
);
avl_tree_unlock
(
global
.
source_tree
);
client_send_400
(
client
,
"Source is not available"
);
client_send_400
(
client
,
"Source is not available"
);
return
;
return
;
}
}
if
(
command
==
COMMAND_SHOUTCAST_METADATA_UPDATE
&&
source
->
shoutcast_compat
==
0
)
{
avl_tree_unlock
(
global
.
source_tree
);
ERROR0
(
"illegal change of metadata on non-shoutcast "
"compatible stream"
);
client_send_400
(
client
,
"illegal metadata call"
);
return
;
}
}
INFO2
(
"Received admin command %s on mount
\"
%s
\"
"
,
INFO2
(
"Received admin command %s on mount
\"
%s
\"
"
,
command_string
,
mount
);
command_string
,
mount
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment