|
@@ -395,7 +395,7 @@ static void OnMsgTimer_PushMode(videoplayer_t *player, HWND hWnd, UINT msg, WPAR
|
|
|
}
|
|
|
if (!bdisplayed) {
|
|
|
player->q_caching = TRUE;
|
|
|
- Dbg("recaching");
|
|
|
+ //Dbg("recaching");
|
|
|
}
|
|
|
}
|
|
|
LeaveCriticalSection(&player->q_lock);
|
|
@@ -974,13 +974,13 @@ int videoplayer_queue_frame(videoplayer_t *player, video_frame *frame, videoplay
|
|
|
player->q_tail = QUEUE_INC(player->q_tail, FRAME_QUEUE_LEGNTH);
|
|
|
if (player->q_caching) {
|
|
|
int qlen = QUEUE_SIZE(player->q_head, player->q_tail, FRAME_QUEUE_LEGNTH);
|
|
|
- Dbg("qlen:%d, %d, %d", qlen, player->min_cache_size, player->max_cache_size);
|
|
|
+ //Dbg("qlen:%d, %d, %d", qlen, player->min_cache_size, player->max_cache_size);
|
|
|
if (qlen >= player->min_cache_size)
|
|
|
player->q_caching = 0;
|
|
|
}
|
|
|
while (QUEUE_SIZE(player->q_head, player->q_tail, FRAME_QUEUE_LEGNTH) > player->max_cache_size) {
|
|
|
int qlen = QUEUE_SIZE(player->q_head, player->q_tail, FRAME_QUEUE_LEGNTH);
|
|
|
- Dbg("erase qlen:%d", qlen);
|
|
|
+ //Dbg("erase qlen:%d", qlen);
|
|
|
free_frame_entry(player, &player->frames[player->q_head]);
|
|
|
player->q_head = QUEUE_INC(player->q_head, FRAME_QUEUE_LEGNTH);
|
|
|
}
|