mirror of https://github.com/mpv-player/mpv
demux: reduce log level for cache index resizing
Now that I probably removed all bugs in this (?), this is uninteresting.
This commit is contained in:
parent
fdce778605
commit
5189ea4696
|
@ -1605,8 +1605,8 @@ static void add_index_entry(struct demux_queue *queue, struct demux_packet *dp,
|
||||||
// Needs to honor power-of-2 requirement.
|
// Needs to honor power-of-2 requirement.
|
||||||
size_t new_size = MPMAX(128, queue->index_size * 2);
|
size_t new_size = MPMAX(128, queue->index_size * 2);
|
||||||
assert(!(new_size & (new_size - 1)));
|
assert(!(new_size & (new_size - 1)));
|
||||||
MP_VERBOSE(in, "stream %d: resize index to %zu\n", queue->ds->index,
|
MP_DBG(in, "stream %d: resize index to %zu\n", queue->ds->index,
|
||||||
new_size);
|
new_size);
|
||||||
// Note: we could tolerate allocation failure, and just discard the
|
// Note: we could tolerate allocation failure, and just discard the
|
||||||
// entire index (and prevent the index from being recreated).
|
// entire index (and prevent the index from being recreated).
|
||||||
MP_RESIZE_ARRAY(NULL, queue->index, new_size);
|
MP_RESIZE_ARRAY(NULL, queue->index, new_size);
|
||||||
|
|
Loading…
Reference in New Issue