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
428c1f1f
Commit
428c1f1f
authored
Jun 26, 2003
by
Ed "oddsock" Zaleski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- force touches when mp3 metadata is updated via admin interface
svn path=/trunk/icecast/; revision=5007
parent
1726d0cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/admin.c
src/admin.c
+14
-0
No files found.
src/admin.c
View file @
428c1f1f
...
@@ -604,6 +604,10 @@ static void command_metadata(client_t *client, source_t *source)
...
@@ -604,6 +604,10 @@ static void command_metadata(client_t *client, source_t *source)
char
*
action
;
char
*
action
;
char
*
value
;
char
*
value
;
mp3_state
*
state
;
mp3_state
*
state
;
#ifdef USE_YP
int
i
;
time_t
current_time
;
#endif
DEBUG0
(
"Got metadata update request"
);
DEBUG0
(
"Got metadata update request"
);
...
@@ -632,6 +636,16 @@ static void command_metadata(client_t *client, source_t *source)
...
@@ -632,6 +636,16 @@ static void command_metadata(client_t *client, source_t *source)
DEBUG2
(
"Metadata on mountpoint %s changed to
\"
%s
\"
"
,
DEBUG2
(
"Metadata on mountpoint %s changed to
\"
%s
\"
"
,
source
->
mount
,
value
);
source
->
mount
,
value
);
stats_event
(
source
->
mount
,
"title"
,
value
);
stats_event
(
source
->
mount
,
"title"
,
value
);
#ifdef USE_YP
/* If we get an update on the mountpoint, force a
yp touch */
current_time
=
time
(
NULL
);
for
(
i
=
0
;
i
<
source
->
num_yp_directories
;
i
++
)
{
source
->
ypdata
[
i
]
->
yp_last_touch
=
current_time
-
source
->
ypdata
[
i
]
->
yp_touch_interval
+
2
;
}
#endif
html_success
(
client
,
"Metadata update successful"
);
html_success
(
client
,
"Metadata update successful"
);
}
}
...
...
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