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
249dcd96
Commit
249dcd96
authored
Aug 14, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd: move delay from _pause() to _delay()
parent
302972e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
httpd_output_plugin.c
src/output/httpd_output_plugin.c
+5
-1
No files found.
src/output/httpd_output_plugin.c
View file @
249dcd96
...
...
@@ -428,6 +428,11 @@ httpd_output_delay(struct audio_output *ao)
will not fill the buffer and it will not update the
timer; therefore, we reset the timer here */
timer_reset
(
httpd
->
timer
);
/* some arbitrary delay that is long enough to avoid
consuming too much CPU, and short enough to notice
new clients quickly enough */
return
1000
;
}
return
httpd
->
timer
->
started
...
...
@@ -535,7 +540,6 @@ httpd_output_pause(struct audio_output *ao)
return
httpd_output_play
(
ao
,
silence
,
sizeof
(
silence
),
NULL
)
>
0
;
}
else
{
g_usleep
(
100000
);
return
true
;
}
}
...
...
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