fix(app): guard video_worker_loop PID ownership and assert pcm_sink output

This commit is contained in:
2026-11-19 14:23:17 -05:00
parent ff1a27e25b
commit db455a1b0d
2 changed files with 9 additions and 0 deletions

View File

@@ -718,6 +718,10 @@ void test_video_player_decodes_frames_seeks_and_handles_silent_mp4() {
}
std::this_thread::sleep_for(std::chrono::milliseconds(20));
}
assert(af.seq > 0);
assert(pcm_samples.load() > 0);
player.stop();
// Muted play(false) on audio MP4 skips pcm_sink and reaches EOF naturally
pcm_samples.store(0);
assert(player.open(audio_mp4, 226, 128));