This commit is contained in:
lunaticbum 2026-04-12 23:43:58 +09:00
parent d0422fafeb
commit fa5e6bbedc
2 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ void PlayerEngine::videoThreadLoop() {
}
AVPacket* pkt = videoQueue_.pop();
if (!pkt) break;
if (!pkt) break;
// 💡 [추가] 패킷을 밀어 넣기 직전에 청소 명령이 있었는지 확인!
if (videoCodecFlushReq_) {
avcodec_flush_buffers(video_codec_ctx_);

View File

@ -228,7 +228,7 @@ class TorrentService : Service() {
// 2. 파일 다운로드: 계산된 점수(finalScore)가 낮은 순으로 정렬
if (isCharging) {
val maxSlots = if (isWifiConnected) 8 else 1
val maxSlots = if (isWifiConnected) 3 else 1
val sortedByPriority = torrentsWithMetadata.sortedBy { it.second }
sortedByPriority.forEachIndexed { index, pair ->