Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
302972e9
Commit
302972e9
authored
Aug 14, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd: fix throttling bug after resuming playback
Reset the timer when paused and no client is connected. This fixes Mantis ticket 0003527.
parent
31b380b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
NEWS
NEWS
+1
-0
httpd_output_plugin.c
src/output/httpd_output_plugin.c
+8
-0
No files found.
NEWS
View file @
302972e9
...
@@ -3,6 +3,7 @@ ver 0.17.2 (2012/??/??)
...
@@ -3,6 +3,7 @@ ver 0.17.2 (2012/??/??)
- fix crash in local file check
- fix crash in local file check
* output:
* output:
- httpd: use monotonic clock, avoid hiccups after system clock adjustment
- httpd: use monotonic clock, avoid hiccups after system clock adjustment
- httpd: fix throttling bug after resuming playback
* mapper: fix non-UTF8 music directory name
* mapper: fix non-UTF8 music directory name
...
...
src/output/httpd_output_plugin.c
View file @
302972e9
...
@@ -422,6 +422,14 @@ httpd_output_delay(struct audio_output *ao)
...
@@ -422,6 +422,14 @@ httpd_output_delay(struct audio_output *ao)
{
{
struct
httpd_output
*
httpd
=
(
struct
httpd_output
*
)
ao
;
struct
httpd_output
*
httpd
=
(
struct
httpd_output
*
)
ao
;
if
(
!
httpd_output_lock_has_clients
(
httpd
)
&&
httpd
->
base
.
pause
)
{
/* if there's no client and this output is paused,
then httpd_output_pause() will not do anything, it
will not fill the buffer and it will not update the
timer; therefore, we reset the timer here */
timer_reset
(
httpd
->
timer
);
}
return
httpd
->
timer
->
started
return
httpd
->
timer
->
started
?
timer_delay
(
httpd
->
timer
)
?
timer_delay
(
httpd
->
timer
)
:
0
;
:
0
;
...
...
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