summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-01-26 13:16:27 -0500
committerwm4 <wm4@nowhere>2015-01-27 18:09:36 +0100
commit2bbad06bfcb189784e7cc5938cfb3a1c7cd9b0cf (patch)
tree89fb086cc8efbc140df8ae6bd8bf180181ba2175 /player
parentacb40644db08ca7a781583666deffab7beaba10a (diff)
downloadmpv-2bbad06bfcb189784e7cc5938cfb3a1c7cd9b0cf.tar.bz2
mpv-2bbad06bfcb189784e7cc5938cfb3a1c7cd9b0cf.tar.xz
ta: rename MP_TALLOC_ELEMS to MP_TALLOC_AVAIL
The macro actually returns the *available* space in the array, not how much is actually filled in.
Diffstat (limited to 'player')
-rw-r--r--player/timeline/tl_matroska.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/timeline/tl_matroska.c b/player/timeline/tl_matroska.c
index ae13f1973c..871f2f83f7 100644
--- a/player/timeline/tl_matroska.c
+++ b/player/timeline/tl_matroska.c
@@ -281,7 +281,7 @@ static int find_ordered_chapter_sources(struct MPContext *mpctx,
MP_INFO(mpctx, "Will scan other files in the "
"same directory to find referenced sources.\n");
filenames = find_files(main_filename);
- num_filenames = MP_TALLOC_ELEMS(filenames);
+ num_filenames = MP_TALLOC_AVAIL(filenames);
talloc_steal(tmp, filenames);
}
// Possibly get further segments appended to the first segment