summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-30 19:03:20 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-30 19:03:20 +0300
commitb33bb28ea3218399d6023a8f3fd2f9a86a3dec41 (patch)
tree203742890df05932e4f1f375330a93cc5d35937d /libmpdemux
parenta2d74a6b200f25a721eb20a6fae4106e8275e6e5 (diff)
downloadmpv-b33bb28ea3218399d6023a8f3fd2f9a86a3dec41.tar.bz2
mpv-b33bb28ea3218399d6023a8f3fd2f9a86a3dec41.tar.xz
build: fix --enable-debug, remove some "#ifdef MP_DEBUG"
Recent commit 5d5ca22a6d ("options: commandline: accept --foo=xyz style options") left some bad code under "#ifdef MP_DEBUG" in playtree.c, which caused a compilation failure if configured with "--enable-debug". Fix this. Having the "#ifdef MP_DEBUG" there was completely unnecessary; it only increased the risk for this kind of problems for no real benefit - executing the asserts under it would have no noticeable performance or other penalty in default builds either. Remove several cases of such harmful "#ifdef MP_DEBUG".
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_real.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libmpdemux/demux_real.c b/libmpdemux/demux_real.c
index b392df817c..d68dfb2b8e 100644
--- a/libmpdemux/demux_real.c
+++ b/libmpdemux/demux_real.c
@@ -1249,10 +1249,6 @@ static demuxer_t* demux_open_real(demuxer_t* demuxer)
codec_data_size = stream_read_dword(demuxer->stream);
codec_pos = stream_tell(demuxer->stream);
-#ifdef MP_DEBUG
-#define stream_skip(st,siz) { int i; for(i=0;i<siz;i++) mp_msg(MSGT_DEMUX,MSGL_V," %02X",stream_read_char(st)); mp_msg(MSGT_DEMUX,MSGL_V,"\n");}
-#endif
-
if (!strncmp(mimet,"audio/",6)) {
if (strstr(mimet,"x-pn-realaudio") || strstr(mimet,"x-pn-multirate-realaudio")) {
tmp = stream_read_dword(demuxer->stream);