Mercurial > mplayer.hg
annotate loader/debug.h @ 25376:382aeacc771f
The buffer used for pread need be aligned, but currently it got an offset 23
to the structure head. This will cause the pread always got random data
on some machines (such as my iMac G5 PPC with 10.5 os) so can not play vcd.
I also tried use DKIOCCDREAD ioctl call, but the result is same -- buffer need
be aligned. It could be a bug of os x or its dev lib.
Now fix this problem by move the buffer to a good aligned position in structure.
author | ulion |
---|---|
date | Sat, 15 Dec 2007 12:17:51 +0000 |
parents | a2e02e6b6379 |
children | 6ac1ece1f9fe |
rev | line source |
---|---|
21261
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
1 #ifdef DEBUG |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
2 #define TRACE printf |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
3 #define dbg_printf printf |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
4 #else |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
5 #define TRACE(...) |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
6 #define dbg_printf(...) |
a2e02e6b6379
Rename config.h --> debug.h and include config.h explicitly.
diego
parents:
diff
changeset
|
7 #endif |