Revision 553febf4d8d473b7849eda2735ea77bbcb4f7c80 authored by Filip Roséen on 20 February 2016, 21:41:07 UTC, committed by Jean-Baptiste Kempf on 05 March 2016, 21:15:12 UTC
Manually managing memory comes at a cost of both maintainability (in terms of safety) and performance, as such I have replaced `p_indexes` with a `std::vector` with equivalent functionality. Three helper member-functions have been introduced in order to clean up the usage of the functionality, as well as removal of two now obsolete member-variables. A `typedef` has also been introduced to aid future development. The changes in `mkv.cpp` are due to the fact that it needs access to the indexes present in `matroska_segment_c`; this should be refactored away in the future. Also fixed a bug where you would access index out of bounds if there are no known indexes. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
1 parent 881299b
File | Mode | Size |
---|---|---|
Makefile.am | -rw-r--r-- | 2.1 KB |
audio.c | -rw-r--r-- | 19.3 KB |
core.c | -rw-r--r-- | 7.4 KB |
dialog.c | -rw-r--r-- | 6.7 KB |
error.c | -rw-r--r-- | 3.3 KB |
event.c | -rw-r--r-- | 8.4 KB |
libvlc.pc.in | -rw-r--r-- | 268 bytes |
libvlc.sym | -rw-r--r-- | 8.0 KB |
libvlc_internal.h | -rw-r--r-- | 3.9 KB |
log.c | -rw-r--r-- | 4.6 KB |
media.c | -rw-r--r-- | 36.0 KB |
media_discoverer.c | -rw-r--r-- | 17.6 KB |
media_internal.h | -rw-r--r-- | 2.1 KB |
media_library.c | -rw-r--r-- | 4.5 KB |
media_list.c | -rw-r--r-- | 15.7 KB |
media_list_internal.h | -rw-r--r-- | 2.5 KB |
media_list_path.h | -rw-r--r-- | 9.1 KB |
media_list_player.c | -rw-r--r-- | 28.1 KB |
media_player.c | -rw-r--r-- | 60.5 KB |
media_player_internal.h | -rw-r--r-- | 2.3 KB |
playlist.c | -rw-r--r-- | 2.0 KB |
video.c | -rw-r--r-- | 25.6 KB |
vlm.c | -rw-r--r-- | 23.7 KB |
Computing file changes ...