s
This commit is contained in:
parent
d0422fafeb
commit
fa5e6bbedc
@ -568,7 +568,7 @@ void PlayerEngine::videoThreadLoop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AVPacket* pkt = videoQueue_.pop();
|
AVPacket* pkt = videoQueue_.pop();
|
||||||
if (!pkt) break;
|
if (!pkt) break;
|
||||||
// 💡 [추가] 패킷을 밀어 넣기 직전에 청소 명령이 있었는지 확인!
|
// 💡 [추가] 패킷을 밀어 넣기 직전에 청소 명령이 있었는지 확인!
|
||||||
if (videoCodecFlushReq_) {
|
if (videoCodecFlushReq_) {
|
||||||
avcodec_flush_buffers(video_codec_ctx_);
|
avcodec_flush_buffers(video_codec_ctx_);
|
||||||
|
|||||||
@ -228,7 +228,7 @@ class TorrentService : Service() {
|
|||||||
|
|
||||||
// 2. 파일 다운로드: 계산된 점수(finalScore)가 낮은 순으로 정렬
|
// 2. 파일 다운로드: 계산된 점수(finalScore)가 낮은 순으로 정렬
|
||||||
if (isCharging) {
|
if (isCharging) {
|
||||||
val maxSlots = if (isWifiConnected) 8 else 1
|
val maxSlots = if (isWifiConnected) 3 else 1
|
||||||
val sortedByPriority = torrentsWithMetadata.sortedBy { it.second }
|
val sortedByPriority = torrentsWithMetadata.sortedBy { it.second }
|
||||||
|
|
||||||
sortedByPriority.forEachIndexed { index, pair ->
|
sortedByPriority.forEachIndexed { index, pair ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user