[MPlayer-cvslog] r25404 - trunk/stream/vcd_read_darwin.h

ulion subversion at mplayerhq.hu
Sat Dec 15 13:17:52 CET 2007


Author: ulion
Date: Sat Dec 15 13:17:51 2007
New Revision: 25404

Log:
The buffer used for pread need be aligned, but currently it's not.
This will cause the pread always got random data so can not play vcd.
Fixed by move the buffer ahead in the structure to make sure it's aligned.


Modified:
   trunk/stream/vcd_read_darwin.h

Modified: trunk/stream/vcd_read_darwin.h
==============================================================================
--- trunk/stream/vcd_read_darwin.h	(original)
+++ trunk/stream/vcd_read_darwin.h	Sat Dec 15 13:17:51 2007
@@ -21,9 +21,9 @@ typedef struct
 typedef struct mp_vcd_priv_st
 {
 	int fd;
+	cdsector_t buf;
 	dk_cd_read_track_info_t entry;
 	CDMSF msf;
-	cdsector_t buf;
 } mp_vcd_priv_t;
 
 static inline void vcd_set_msf(mp_vcd_priv_t* vcd, unsigned int sect)



More information about the MPlayer-cvslog mailing list