[vlc-devel] commit: 64bit compilation fixes ( Felix Paul Kühne )

git version control git at videolan.org
Sun Jan 4 15:20:03 CET 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jan  4 15:19:12 2009 +0100| [3d5ff7dc53d5ac154fd56faca23a3b6364037aa2] | committer: Felix Paul Kühne 

64bit compilation fixes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d5ff7dc53d5ac154fd56faca23a3b6364037aa2
---

 modules/control/unimotion.c |    9 +++++++--
 modules/gui/macosx/vout.m   |    4 ++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/modules/control/unimotion.c b/modules/control/unimotion.c
index c4195e2..6e60c1a 100644
--- a/modules/control/unimotion.c
+++ b/modules/control/unimotion.c
@@ -138,8 +138,8 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data)
     io_object_t aDevice;
     io_connect_t  dataPort;
 
-    IOItemCount structureInputSize;
-    IOByteCount structureOutputSize;
+    size_t structureInputSize;
+    size_t structureOutputSize;
 
     union motion_data inputStructure;
     union motion_data *outputStructure;
@@ -189,8 +189,13 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data)
     memset(&inputStructure, 0, sizeof(union motion_data));
     memset(outputStructure, 0, sizeof(union motion_data));
 
+#ifdef __LP64__
+    result = IOConnectCallStructMethod(dataPort, kernFunc, &inputStructure, 
+                structureInputSize, outputStructure, &structureOutputSize );
+#else
     result = IOConnectMethodStructureIStructureO(dataPort, kernFunc, structureInputSize,
                 &structureOutputSize, &inputStructure, outputStructure);
+#endif
 
     IOServiceClose(dataPort);
 
diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 8152b44..3772cb3 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -37,6 +37,9 @@
 /* BeginFullScreen, EndFullScreen */
 #include <QuickTime/QuickTime.h>
 
+/* prevent system sleep */
+#import <CoreServices/CoreServices.h>
+
 #include <vlc_keys.h>
 
 #include "intf.h"
@@ -447,6 +450,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     if( !VLCIntf || !VLCIntf->p_sys )
         return;
 
+    UInt8 UsrActivity;
     if( VLCIntf->p_sys->i_play_status == PLAYING_S )
         UpdateSystemActivity( UsrActivity );
 }




More information about the vlc-devel mailing list