Skip to content

pulse: don't drain the stream - #1268

Merged
flyingmutant merged 1 commit into
masterfrom
pa-no-drain
Jul 15, 2023
Merged

flyingmutant merged 1 commit into
masterfrom
pa-no-drain

Conversation

@flyingmutant

Copy link
Copy Markdown
Member

See #1172.
Fixes #1064.

@pgaskin pgaskin left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; not tested, but it makes sense.

P.S. You can edit and add Closes #1172 to the initial message to also close the old PR automatically.


On a side note, we should probably rename

cmus/player.c

Line 748 in 1c3c25c

static void _consumer_drain_and_stop(void)
since we don't actually want to drain the stream (i.e., wait for playback to finish for frames in the buffer); we want to flush it (i.e., discard all unplayed samples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quitting while playback is paused takes several seconds

2 participants