]> git.sesse.net Git - vlc/commitdiff
Trailing whitespace/tabs fixes
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Wed, 23 Apr 2008 17:40:11 +0000 (19:40 +0200)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Wed, 23 Apr 2008 17:40:11 +0000 (19:40 +0200)
bindings/python/vlc_instance.c
bindings/python/vlc_media.c
bindings/python/vlc_mediacontrol.c
bindings/python/vlc_module.c
bindings/python/vlc_position.c
bindings/python/vlcwidget.py
include/vlc/libvlc.h
include/vlc/mediacontrol.h
src/control/mediacontrol_audio_video.c
src/control/mediacontrol_core.c
src/control/mediacontrol_util.c

index 75298bbc0e22dc3241be00aabd5e4403b8a8eb28..3e5462a8e83ec7025440f2b5aa478b554879a478 100644 (file)
@@ -302,12 +302,12 @@ vlcInstance_vlm_add_broadcast( PyObject *self, PyObject *args, PyObject *kwds )
                       &psz_input, &psz_output,
                       &py_options, &i_enable, &i_loop ) )
         return NULL;
+
     if( py_options )
     {
         i_size = pyoptions_to_args( py_options, &ppsz_args );
     }
+
     LIBVLC_TRY;
     libvlc_vlm_add_broadcast( LIBVLC_INSTANCE->p_instance,
                               psz_name, psz_input, psz_output,
@@ -340,7 +340,7 @@ vlcInstance_vlm_set_enabled( PyObject *self, PyObject *args )
     libvlc_exception_t ex;
     char* psz_name;
     int i_enabled;
+
     if( !PyArg_ParseTuple( args, "si", &psz_name, &i_enabled ) )
         return NULL;
 
@@ -357,7 +357,7 @@ vlcInstance_vlm_set_output( PyObject *self, PyObject *args )
     libvlc_exception_t ex;
     char* psz_name;
     char* psz_output;
+
     if( !PyArg_ParseTuple( args, "ss", &psz_name, &psz_output ) )
         return NULL;
 
@@ -374,7 +374,7 @@ vlcInstance_vlm_set_input( PyObject *self, PyObject *args )
     libvlc_exception_t ex;
     char* psz_name;
     char* psz_input;
+
     if( !PyArg_ParseTuple( args, "ss", &psz_name, &psz_input ) )
         return NULL;
 
@@ -391,7 +391,7 @@ vlcInstance_vlm_add_input( PyObject *self, PyObject *args )
     libvlc_exception_t ex;
     char* psz_name;
     char* psz_input;
+
     if( !PyArg_ParseTuple( args, "ss", &psz_name, &psz_input ) )
         return NULL;
 
@@ -408,7 +408,7 @@ vlcInstance_vlm_set_loop( PyObject *self, PyObject *args )
     libvlc_exception_t ex;
     char* psz_name;
     int i_loop;
+
     if( !PyArg_ParseTuple( args, "si", &psz_name, &i_loop ) )
         return NULL;
 
@@ -439,12 +439,12 @@ vlcInstance_vlm_change_media( PyObject *self, PyObject *args, PyObject *kwds )
                       &psz_input, &psz_output,
                       &py_options, &i_enable, &i_loop ) )
         return NULL;
+
     if( py_options )
     {
         i_size = pyoptions_to_args( py_options, &ppsz_args );
     }
+
     LIBVLC_TRY;
     libvlc_vlm_change_media( LIBVLC_INSTANCE->p_instance,
                               psz_name, psz_input, psz_output,
@@ -460,7 +460,7 @@ vlcInstance_vlm_play_media( PyObject *self, PyObject *args )
 {
     libvlc_exception_t ex;
     char* psz_name;
+
     if( !PyArg_ParseTuple( args, "s", &psz_name ) )
         return NULL;
 
@@ -492,7 +492,7 @@ vlcInstance_vlm_pause_media( PyObject *self, PyObject *args )
 {
     libvlc_exception_t ex;
     char* psz_name;
+
     if( !PyArg_ParseTuple( args, "s", &psz_name ) )
         return NULL;
 
@@ -509,7 +509,7 @@ vlcInstance_vlm_seek_media( PyObject *self, PyObject *args )
     libvlc_exception_t ex;
     char* psz_name;
     float f_percentage;
+
     if( !PyArg_ParseTuple( args, "sf", &psz_name, &f_percentage ) )
         return NULL;
 
index f557529eba0442d5f84e39763ec83d67534b9170..280e68b69e79a9dff64e38e28a7cf39157844322 100644 (file)
@@ -179,7 +179,7 @@ static PyMethodDef vlcMedia_methods[] =
       "is_preparsed() -> int" },
     { "get_meta", vlcMedia_get_meta, METH_VARARGS,
       "get_meta(str) -> str   Read the meta of the media." },
-    
+
     { NULL }  /* Sentinel */
 };
 
index 8aa6eea715b878df4e2efc10191fbe3d2369adfa..b5b51ff98959b9d93442b1ad3e93a8a262f64594 100644 (file)
@@ -37,7 +37,7 @@ MediaControl_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
     char** ppsz_args = NULL;
     libvlc_instance_t* p_instance = NULL;
     Py_ssize_t i_size = 0;
+
     self = PyObject_New( MediaControl, &MediaControl_Type );
 
     fprintf (stderr, "Instanciating mediacontrol\n");
index a2f54608a07c514b004be18d8fe585eeddbe7515..418e297e4ab1432319673321ce43b7ec50360458 100644 (file)
@@ -46,7 +46,7 @@ vlcMODINIT_FUNC
 initvlc( void )
 {
     PyObject* p_module;
-    
+
     /* vlcMediaPlayer_Type.tp_new = PyType_GenericNew; */
     vlcMediaPlayer_Type.tp_alloc = PyType_GenericAlloc;
     /* vlcMedia_Type.tp_new = PyType_GenericNew; */
@@ -160,7 +160,7 @@ initvlc( void )
                              mediacontrol_EndStatus );
     PyModule_AddIntConstant( p_module, "UndefinedStatus",
                              mediacontrol_UndefinedStatus );
-    
+
 }
 
 /* Horrible hack... Please do not look.  Temporary workaround for the
index 8cf6efabd69af92807895c5d1c8ef34513d0f8b9..e2e736be7f811e0e15a5dad18edc6b29f5ec586c 100644 (file)
@@ -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;
index 812f63324a2573d08ff497e86a8eb4ec3ab0b7a4..2543316c8835f122b0a470222ed7cbcd73817702 100755 (executable)
@@ -44,7 +44,7 @@ class DecoratedVLCWidget(gtk.VBox):
     VLC widget decorated with a player control toolbar.
 
     Its player can be controlled through the 'player' attribute, which
-    is a MediaControl instance.    
+    is a MediaControl instance.
     """
     def __init__(self, *p):
         gtk.VBox.__init__(self)
@@ -58,7 +58,7 @@ class DecoratedVLCWidget(gtk.VBox):
         """Return a player control toolbar
         """
         tb=gtk.Toolbar()
-        tb.set_style(gtk.TOOLBAR_ICONS) 
+        tb.set_style(gtk.TOOLBAR_ICONS)
 
         def on_play(b):
             self.player.start(0)
@@ -77,7 +77,7 @@ class DecoratedVLCWidget(gtk.VBox):
              on_play),
             (_("Pause"), _("Pause"), gtk.STOCK_MEDIA_PAUSE,
              on_pause),
-            (_("Stop"), _("Stop"), gtk.STOCK_MEDIA_STOP, 
+            (_("Stop"), _("Stop"), gtk.STOCK_MEDIA_STOP,
              on_stop),
             )
 
@@ -93,7 +93,7 @@ class VideoPlayer:
     """
     def __init__(self):
         self.vlc = DecoratedVLCWidget()
-        
+
     def main(self, fname):
         self.vlc.player.playlist_add_item(fname)
         self.popup()
index e9a25b330f915bbda1d53e8a8163c957090d99ac..18797ad0917f36543a7dcd430a11423523723ffd 100644 (file)
@@ -291,7 +291,7 @@ VLC_PUBLIC_API void *
  * @{
  */
 
-/** 
+/**
  * Create an empty Media Player object
  *
  * \param p_libvlc_instance the libvlc instance in which the Media Player
@@ -328,7 +328,7 @@ VLC_PUBLIC_API void libvlc_media_player_retain( libvlc_media_player_t * );
 VLC_PUBLIC_API void libvlc_media_player_set_media( libvlc_media_player_t *, libvlc_media_t *, libvlc_exception_t * );
 
 /**
- * Get the media used by the media_player. 
+ * Get the media used by the media_player.
  *
  * \param p_mi the Media Player
  * \param p_e an initialized exception pointer
@@ -347,7 +347,7 @@ VLC_PUBLIC_API libvlc_media_t * libvlc_media_player_get_media( libvlc_media_play
 VLC_PUBLIC_API libvlc_event_manager_t * libvlc_media_player_event_manager ( libvlc_media_player_t *, libvlc_exception_t * );
 
 /**
- * Play 
+ * Play
  *
  * \param p_mi the Media Player
  * \param p_e an initialized exception pointer
@@ -355,7 +355,7 @@ VLC_PUBLIC_API libvlc_event_manager_t * libvlc_media_player_event_manager ( libv
 VLC_PUBLIC_API void libvlc_media_player_play ( libvlc_media_player_t *, libvlc_exception_t * );
 
 /**
- * Pause 
+ * Pause
  *
  * \param p_mi the Media Player
  * \param p_e an initialized exception pointer
@@ -363,7 +363,7 @@ VLC_PUBLIC_API void libvlc_media_player_play ( libvlc_media_player_t *, libvlc_e
 VLC_PUBLIC_API void libvlc_media_player_pause ( libvlc_media_player_t *, libvlc_exception_t * );
 
 /**
- * Stop 
+ * Stop
  *
  * \param p_mi the Media Player
  * \param p_e an initialized exception pointer
index 18b4ad4af7f40c119da5100664ec4ceba5809821..684aaaeb61a008d2b1c2882e849d8fe9a4a4146e 100644 (file)
@@ -218,7 +218,7 @@ VLC_PUBLIC_API void mediacontrol_set_mrl( mediacontrol_Instance *self,
  * \param exception an initialized exception pointer
  */
 VLC_PUBLIC_API char * mediacontrol_get_mrl( mediacontrol_Instance *self,
-                                           mediacontrol_Exception *exception );
+                                            mediacontrol_Exception *exception );
 
 /*****************************************************************************
  * A/V functions
index 6b3a266a5019dbbf1d789df00f4cac3ba4dfcd55..e5bd503a976171ac2dc898e1cd4532f2638f22d5 100644 (file)
@@ -205,10 +205,10 @@ mediacontrol_display_text( mediacontrol_Instance *self,
         mtime_t i_now = mdate();
 
         i_duration = 1000 * private_mediacontrol_unit_convert(
-                                                             self->p_media_player,
-                                                             end->key,
-                                                             mediacontrol_MediaTime,
-                                                             end->value );
+                                                              self->p_media_player,
+                                                              end->key,
+                                                              mediacontrol_MediaTime,
+                                                              end->value );
 
         mediacontrol_showtext( p_vout, DEFAULT_CHAN, psz_message, NULL,
                                OSD_ALIGN_BOTTOM | OSD_ALIGN_LEFT, 0, 0,
index dbcec0bb56b3c3e7aef1b44f306be690722b8767..eff3ef6084b67864fb0701c27ea760201dae1814 100644 (file)
@@ -98,9 +98,9 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance,
 {
     mediacontrol_Instance* retval;
     libvlc_exception_t ex;
-    
+
     libvlc_exception_init( &ex );
-    
+
     retval = ( mediacontrol_Instance* )malloc( sizeof( mediacontrol_Instance ) );
     if( ! retval )
     {
@@ -194,7 +194,7 @@ mediacontrol_start( mediacontrol_Instance *self,
 
     mediacontrol_exception_init( exception );
     libvlc_exception_init( &ex );
-    
+
     p_media = libvlc_media_player_get_media( self->p_media_player, &ex );
     HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
 
@@ -213,7 +213,7 @@ mediacontrol_start( mediacontrol_Instance *self,
         /* Create a new media */
         p_media = libvlc_media_new( self->p_instance, psz_name, &ex );
         HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
-        
+
         if( a_position->value )
         {
             char * psz_from;
@@ -226,7 +226,7 @@ mediacontrol_start( mediacontrol_Instance *self,
             libvlc_media_add_option( p_media, psz_from, &ex );
             HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
         }
-        
+
         libvlc_media_player_set_media( self->p_media_player, p_media, &ex );
         HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
 
@@ -285,7 +285,7 @@ mediacontrol_set_mrl( mediacontrol_Instance *self,
 
     mediacontrol_exception_init( exception );
     libvlc_exception_init( &ex );
-    
+
     p_media = libvlc_media_new( self->p_instance, psz_file, &ex );
     HANDLE_LIBVLC_EXCEPTION_VOID( &ex );
 
@@ -302,7 +302,7 @@ mediacontrol_get_mrl( mediacontrol_Instance *self,
 
     mediacontrol_exception_init( exception );
     libvlc_exception_init( &ex );
-    
+
     p_media = libvlc_media_player_get_media( self->p_media_player, &ex );
     HANDLE_LIBVLC_EXCEPTION_NULL( &ex );
 
index 1013169975b34a73bc28cd9bf25ee89346e897e2..b651bc77bd64d4a89ca097701af52acaee48b9cb 100644 (file)
@@ -73,11 +73,11 @@ libvlc_time_t private_mediacontrol_unit_convert( libvlc_media_player_t *p_media_
         if( to == mediacontrol_SampleCount )
         {
             double f_fps;
-           libvlc_exception_t ex;
-           libvlc_exception_init( &ex );
+            libvlc_exception_t ex;
+            libvlc_exception_init( &ex );
 
-           f_fps = libvlc_media_player_get_rate( p_media_player, &ex );
-           if( f_fps < 0 )
+            f_fps = libvlc_media_player_get_rate( p_media_player, &ex );
+            if( f_fps < 0 )
                 return 0;
             else
                 return( value * f_fps / 1000.0 );
@@ -91,7 +91,7 @@ libvlc_time_t private_mediacontrol_unit_convert( libvlc_media_player_t *p_media_
         double f_fps;
         libvlc_exception_t ex;
         libvlc_exception_init( &ex );
-        
+
         f_fps = libvlc_media_player_get_rate( p_media_player, &ex );
         if( f_fps < 0 )
             return 0;
@@ -121,7 +121,7 @@ libvlc_time_t private_mediacontrol_unit_convert( libvlc_media_player_t *p_media_
 /* Converts a mediacontrol_Position into a time in microseconds in
    movie clock time */
 libvlc_time_t
-private_mediacontrol_position2microsecond( libvlc_media_player_t * p_media_player, 
+private_mediacontrol_position2microsecond( libvlc_media_player_t * p_media_player,
                                            const mediacontrol_Position * pos )
 {
     switch( pos->origin )
@@ -215,7 +215,7 @@ mediacontrol_Exception*
 mediacontrol_exception_create( void )
 {
     mediacontrol_Exception* exception;
+
     exception = ( mediacontrol_Exception* )malloc( sizeof( mediacontrol_Exception ) );
     mediacontrol_exception_init( exception );
     return exception;