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
6b430ba2
Commit
6b430ba2
authored
Jul 09, 2022
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/PipeWire: activate stream in Drain()
parent
bc6924d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
NEWS
NEWS
+1
-0
PipeWireOutputPlugin.cxx
src/output/plugins/PipeWireOutputPlugin.cxx
+11
-0
No files found.
NEWS
View file @
6b430ba2
...
...
@@ -5,6 +5,7 @@ ver 0.23.8 (not yet released)
- cdio_paranoia: fix crash if no drive was found
- cdio_paranoia: faster cancellation
- cdio_paranoia: don't scan for replay gain tags
- pipewire: fix playback of very short tracks
- snapcast: fix busy loop while paused
- snapcast: fix stuttering after resuming playback
* mixer
...
...
src/output/plugins/PipeWireOutputPlugin.cxx
View file @
6b430ba2
...
...
@@ -866,6 +866,17 @@ PipeWireOutput::Drain()
{
const
PipeWire
::
ThreadLoopLock
lock
(
thread_loop
);
if
(
drained
)
return
;
if
(
!
active
)
{
/* there is data in the ring_buffer, but the stream is
not yet active; activate it now to ensure it is
played before this method returns */
active
=
true
;
pw_stream_set_active
(
stream
,
true
);
}
drain_requested
=
true
;
AtScopeExit
(
this
)
{
drain_requested
=
false
;
};
...
...
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