mpv-player / mpv-player/mpv

Playback does not start on file open when default Windows audio output device is switched

Open
#9,850 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

os:win
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

Reproduction steps

I have separated my front and back audio output in the Realtek Audio Console. Everything works fine, if I leave the default output in Windows on the back audio jacks. But if I switch my default output in Windows from the back to the front output jack (Settings --> System --> Audio) and play a file, the file opens, but the playback does not start.

It seems that the audio thread gets shut down and not restarted again (see attached log file).

Expected behavior

The file starts to play right away on the default audio output.

Actual behavior

MPV opens the file, displays the first frame but does not start playing it. Pressing play/pause button or keyboard shortcut has no effect. Playback only starts after seeking, either on the osd or via keyboard shortcut.

Log files

log-front.txt
log-back.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing log-front.txt and log-back.txt, then reproduce the issue on Windows 10 by switching the default output between the back and front audio jacks before opening a file. Done means playback starts immediately on the selected default output and play/pause works without seeking.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.