]> git.sesse.net Git - vlc/blobdiff - bindings/python/vlc_position.c
Qt: Toggle playlist source on click
[vlc] / bindings / python / vlc_position.c
index 919be29b26cd03c480efb92ca1acb489a5526305..3d6b8c8fbcd7c964b07610e7ab657ae03cd86c26 100644 (file)
@@ -1,10 +1,10 @@
 /*****************************************************************************
  * vlc_position.c: vlc.Position binding
  *****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006,2007,2008,2009 the VideoLAN team
  * $Id$
  *
- * Authors: Olivier Aubert <oaubert at bat710.univ-lyon1.fr>
+ * Authors: Olivier Aubert <olivier.aubert at liris.cnrs.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@ PyPosition_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
 {
     PyPosition *self;
     static char *kwlist[] = { "value", "origin", "key", NULL};
-    
+
     self = PyObject_New( PyPosition, &PyPosition_Type );
 
     self->value=0;
@@ -43,27 +43,27 @@ PyPosition_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
                                       &(self->origin),
                                       &(self->key) ) )
     {
-        return NULL;        
+        return NULL;
     }
 
-    if( self->key != mediacontrol_MediaTime 
-       && self->key != mediacontrol_ByteCount
-       && self->key != mediacontrol_SampleCount ) 
+    if( self->key != mediacontrol_MediaTime
+    && self->key != mediacontrol_ByteCount
+    && self->key != mediacontrol_SampleCount )
     {
         PyErr_SetString ( MediaControl_InternalException, "Invalid key value" );
         return NULL;
     }
 
-    if( self->origin != mediacontrol_AbsolutePosition 
-       && self->origin != mediacontrol_RelativePosition
-       && self->origin != mediacontrol_ModuloPosition ) 
+    if( self->origin != mediacontrol_AbsolutePosition
+    && self->origin != mediacontrol_RelativePosition
+    && self->origin != mediacontrol_ModuloPosition )
     {
         PyErr_SetString ( MediaControl_InternalException, "Invalid origin value" );
         return NULL;
     }
 
     Py_INCREF( self );
-    return ( PyObject * )self;    
+    return ( PyObject * )self;
 }
 
 mediacontrol_PositionKey