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
dcbc05a9
Commit
dcbc05a9
authored
Jan 05, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd: import GetEventLoop()
parent
4c705334
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
HttpdInternal.hxx
src/output/HttpdInternal.hxx
+2
-0
HttpdOutputPlugin.cxx
src/output/HttpdOutputPlugin.cxx
+3
-3
No files found.
src/output/HttpdInternal.hxx
View file @
dcbc05a9
...
...
@@ -164,6 +164,8 @@ public:
#pragma GCC diagnostic pop
#endif
using
DeferredMonitor
::
GetEventLoop
;
bool
Init
(
const
config_param
&
param
,
Error
&
error
);
void
Finish
()
{
...
...
src/output/HttpdOutputPlugin.cxx
View file @
dcbc05a9
...
...
@@ -72,7 +72,7 @@ HttpdOutput::Bind(Error &error)
open
=
false
;
bool
result
=
false
;
BlockingCall
(
DeferredMonitor
::
GetEventLoop
(),
[
this
,
&
error
,
&
result
](){
BlockingCall
(
GetEventLoop
(),
[
this
,
&
error
,
&
result
](){
result
=
ServerSocket
::
Open
(
error
);
});
return
result
;
...
...
@@ -83,7 +83,7 @@ HttpdOutput::Unbind()
{
assert
(
!
open
);
BlockingCall
(
DeferredMonitor
::
GetEventLoop
(),
[
this
](){
BlockingCall
(
GetEventLoop
(),
[
this
](){
ServerSocket
::
Close
();
});
}
...
...
@@ -167,7 +167,7 @@ httpd_output_finish(struct audio_output *ao)
inline
void
HttpdOutput
::
AddClient
(
int
fd
)
{
clients
.
emplace_front
(
*
this
,
fd
,
ServerSocket
::
GetEventLoop
(),
clients
.
emplace_front
(
*
this
,
fd
,
GetEventLoop
(),
encoder
->
plugin
.
tag
==
nullptr
);
++
clients_cnt
;
...
...
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