Mercurial > mplayer.hg
annotate loader/debug.h @ 29770:db80b9d20406
demuxer.c: Add initialization missing from previous commit
Reimar's previous commit ("Unbreak the demuxer-specific code in
video.c with e.g.") added the new field "non_interleaved" in
demux_stream structs, but this field was not initialized anywhere.
Under suitable circumstances this could cause a "Too many
video/audio packets in the buffer" error and failing playback. Fix
the problem by cleaning up the code that creates new instances of the
struct. Now fields will be initialized to 0 by default.
author | uau |
---|---|
date | Mon, 02 Nov 2009 01:40:09 +0000 |
parents | a8ea87c71d18 |
children |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_DEBUG_H |
2 #define MPLAYER_DEBUG_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
21261
diff
changeset
|
3 |
21261
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
4 #ifdef DEBUG |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
5 #define TRACE printf |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
6 #define dbg_printf printf |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
7 #else |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
8 #define TRACE(...) |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
9 #define dbg_printf(...) |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
10 #endif |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
21261
diff
changeset
|
11 |
26045 | 12 #endif /* MPLAYER_DEBUG_H */ |