]> git.sesse.net Git - vlc/commitdiff
Should fix compilation
authorJérome Decoodt <djc@videolan.org>
Wed, 20 Jun 2007 20:42:24 +0000 (20:42 +0000)
committerJérome Decoodt <djc@videolan.org>
Wed, 20 Jun 2007 20:42:24 +0000 (20:42 +0000)
Add some news

NEWS
modules/control/motion.c
modules/control/unimotion.c

diff --git a/NEWS b/NEWS
index 1b36d72c225ae1a85cc71469c22296c94d4323bf..594fdb84dbb329b4bef94168824e25d624eb3db3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -79,6 +79,7 @@ Video output and filters:
  * New bluescreen video filter (for use with the mosaic_bridge module). This
    was previously part of the mosaic module.
  * Fix random characters problem in RSS filter.
+ * Add rotate-deciangle for more precision on rotate filter
 
 Audio output
  * Replay gain support.
@@ -99,6 +100,7 @@ Interfaces:
      (Media Player Remote Interfacing specification), a common dbus control 
      interface for media players that intends to become an xdg standard when 
      finished.
+   * Motion module use disk accelerometers to keep video horizontal
 
 Capture:
  * new BDA device driver plugin for DVB-C/S/T capture cards on Microsoft
index 783af9fe1cc0bdb0387d0d1fd63a7b2a85591a99..dc75305202e1a1fa59a66e12f6c3c683ce46c2eb 100644 (file)
@@ -47,8 +47,9 @@
 struct intf_sys_t
 {
     enum { NO_SENSOR, HDAPS_SENSOR, AMS_SENSOR, UNIMOTION_SENSOR } sensor;
+#ifdef __APPLE__
     enum sms_hardware unimotion_hw;
-
+#endif
     int i_calibrate;
 
     vlc_bool_t b_use_rotate;
@@ -238,8 +239,10 @@ static void RunIntf( intf_thread_t *p_intf )
 static int GetOrientation( intf_thread_t *p_intf )
 {
     FILE *f;
-    int i_x, i_y, i_z;
-
+    int i_x, i_y;
+#ifdef __APPLE__
+    int i_z;
+#endif
     switch( p_intf->p_sys->sensor )
     {
     case HDAPS_SENSOR:
@@ -279,9 +282,9 @@ static int GetOrientation( intf_thread_t *p_intf )
             else
                 return 3600 + asin(d_x)*3600/3.141;
         }
-#endif
         else
             return 0;
+#endif
     default:
         return 0;
     }
index 331f7fc99e5efe21dc022eb2e3a979b91c6819f4..dcf19dc51a6428a093df41ce7692cb7f2e9e82f8 100644 (file)
@@ -260,10 +260,10 @@ int read_sms(int type, int *x, int *y, int *z)
     if ( !ret )
         return 0;
 
-       static CFStringRef app = CFSTR("com.ramsayl.UniMotion");
-       static CFStringRef xoffstr = CFSTR("x_offset");
-       static CFStringRef yoffstr = CFSTR("y_offset");
-       static CFStringRef zoffstr = CFSTR("z_offset");
+       CFStringRef app = CFSTR("com.ramsayl.UniMotion");
+       CFStringRef xoffstr = CFSTR("x_offset");
+       CFStringRef yoffstr = CFSTR("y_offset");
+       CFStringRef zoffstr = CFSTR("z_offset");
        xoff = CFPreferencesGetAppIntegerValue(xoffstr, app, &ok);
        if ( ok ) _x += xoff;
        yoff = CFPreferencesGetAppIntegerValue(yoffstr, app, &ok);