Staging
v0.5.1
Revision 6487b499943b3a014abf4239dac0a0119793fcb3 authored by Filip Roséen on 09 March 2016, 11:50:02 UTC, committed by Jean-Baptiste Kempf on 09 March 2016, 11:57:59 UTC
The two overloads of EbmlParser::reconstruct has been added due to the
fact that there are _a lot_ of places in the code following the below:

    delete ep;
    ep = new EbmlParser (a, b, c, b);

The above will, unless the compiler feels cocky and optimizes it to what
is included in this patch. First free the memory used, and then allocate
new memory for a new EbmlParser.

Instead of doing what is effectively a reallocation, this patch
introduces EbmlParser::reconstruct which will reconstruct the object
in-place (without actually having to reallocate the underlying storage).

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
1 parent 1b41c8e
History
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

back to top