Changeset 8ee62bb6296e3c1c634eddcab64a5b7391d9796e

Show
Ignore:
Timestamp:
04/23/08 19:40:11 (2 months ago)
Author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr>
git-committer:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1208972411 +0200
git-parent:

[a65760b0a81ef4cceff8da2c517964a184117514]

git-author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1208972411 +0200
Message:

Trailing whitespace/tabs fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bindings/python/vlc_instance.c

    r241b228 r8ee62bb  
    303303                      &py_options, &i_enable, &i_loop ) ) 
    304304        return NULL; 
    305   
     305 
    306306    if( py_options ) 
    307307    { 
    308308        i_size = pyoptions_to_args( py_options, &ppsz_args ); 
    309309    } 
    310   
     310 
    311311    LIBVLC_TRY; 
    312312    libvlc_vlm_add_broadcast( LIBVLC_INSTANCE->p_instance, 
     
    341341    char* psz_name; 
    342342    int i_enabled; 
    343   
     343 
    344344    if( !PyArg_ParseTuple( args, "si", &psz_name, &i_enabled ) ) 
    345345        return NULL; 
     
    358358    char* psz_name; 
    359359    char* psz_output; 
    360   
     360 
    361361    if( !PyArg_ParseTuple( args, "ss", &psz_name, &psz_output ) ) 
    362362        return NULL; 
     
    375375    char* psz_name; 
    376376    char* psz_input; 
    377   
     377 
    378378    if( !PyArg_ParseTuple( args, "ss", &psz_name, &psz_input ) ) 
    379379        return NULL; 
     
    392392    char* psz_name; 
    393393    char* psz_input; 
    394   
     394 
    395395    if( !PyArg_ParseTuple( args, "ss", &psz_name, &psz_input ) ) 
    396396        return NULL; 
     
    409409    char* psz_name; 
    410410    int i_loop; 
    411   
     411 
    412412    if( !PyArg_ParseTuple( args, "si", &psz_name, &i_loop ) ) 
    413413        return NULL; 
     
    440440                      &py_options, &i_enable, &i_loop ) ) 
    441441        return NULL; 
    442   
     442 
    443443    if( py_options ) 
    444444    { 
    445445        i_size = pyoptions_to_args( py_options, &ppsz_args ); 
    446446    } 
    447   
     447 
    448448    LIBVLC_TRY; 
    449449    libvlc_vlm_change_media( LIBVLC_INSTANCE->p_instance, 
     
    461461    libvlc_exception_t ex; 
    462462    char* psz_name; 
    463   
     463 
    464464    if( !PyArg_ParseTuple( args, "s", &psz_name ) ) 
    465465        return NULL; 
     
    493493    libvlc_exception_t ex; 
    494494    char* psz_name; 
    495   
     495 
    496496    if( !PyArg_ParseTuple( args, "s", &psz_name ) ) 
    497497        return NULL; 
     
    510510    char* psz_name; 
    511511    float f_percentage; 
    512   
     512 
    513513    if( !PyArg_ParseTuple( args, "sf", &psz_name, &f_percentage ) ) 
    514514        return NULL; 
  • bindings/python/vlc_media.c

    r241b228 r8ee62bb  
    180180    { "get_meta", vlcMedia_get_meta, METH_VARARGS, 
    181181      "get_meta(str) -> str   Read the meta of the media." }, 
    182      
     182 
    183183    { NULL }  /* Sentinel */ 
    184184}; 
  • bindings/python/vlc_mediacontrol.c

    r241b228 r8ee62bb  
    3838    libvlc_instance_t* p_instance = NULL; 
    3939    Py_ssize_t i_size = 0; 
    40   
     40 
    4141    self = PyObject_New( MediaControl, &MediaControl_Type ); 
    4242 
  • bindings/python/vlc_module.c

    r241b228 r8ee62bb  
    4747{ 
    4848    PyObject* p_module; 
    49      
     49 
    5050    /* vlcMediaPlayer_Type.tp_new = PyType_GenericNew; */ 
    5151    vlcMediaPlayer_Type.tp_alloc = PyType_GenericAlloc; 
     
    161161    PyModule_AddIntConstant( p_module, "UndefinedStatus", 
    162162                             mediacontrol_UndefinedStatus ); 
    163      
     163 
    164164} 
    165165 
  • bindings/python/vlc_position.c

    r6ee1e19 r8ee62bb  
    3232    PyPosition *self; 
    3333    static char *kwlist[] = { "value", "origin", "key", NULL}; 
    34   
     34 
    3535    self = PyObject_New( PyPosition, &PyPosition_Type ); 
    3636 
  • bindings/python/vlcwidget.py

    rc9958ed r8ee62bb  
    4545 
    4646    Its player can be controlled through the 'player' attribute, which 
    47     is a MediaControl instance.     
     47    is a MediaControl instance. 
    4848    """ 
    4949    def __init__(self, *p): 
     
    5959        """ 
    6060        tb=gtk.Toolbar() 
    61         tb.set_style(gtk.TOOLBAR_ICONS)  
     61        tb.set_style(gtk.TOOLBAR_ICONS) 
    6262 
    6363        def on_play(b): 
     
    7878            (_("Pause"), _("Pause"), gtk.STOCK_MEDIA_PAUSE, 
    7979             on_pause), 
    80             (_("Stop"), _("Stop"), gtk.STOCK_MEDIA_STOP,  
     80            (_("Stop"), _("Stop"), gtk.STOCK_MEDIA_STOP, 
    8181             on_stop), 
    8282            ) 
     
    9494    def __init__(self): 
    9595        self.vlc = DecoratedVLCWidget() 
    96          
     96 
    9797    def main(self, fname): 
    9898        self.vlc.player.playlist_add_item(fname) 
  • include/vlc/libvlc.h

    r1fb2f8b r8ee62bb  
    292292 */ 
    293293 
    294 /**  
     294/** 
    295295 * Create an empty Media Player object 
    296296 * 
     
    329329 
    330330/** 
    331  * Get the media used by the media_player.  
     331 * Get the media used by the media_player. 
    332332 * 
    333333 * \param p_mi the Media Player 
     
    348348 
    349349/** 
    350  * Play  
     350 * Play 
    351351 * 
    352352 * \param p_mi the Media Player 
     
    356356 
    357357/** 
    358  * Pause  
     358 * Pause 
    359359 * 
    360360 * \param p_mi the Media Player 
     
    364364 
    365365/** 
    366  * Stop  
     366 * Stop 
    367367 * 
    368368 * \param p_mi the Media Player 
  • include/vlc/mediacontrol.h

    r445d63e r8ee62bb  
    219219 */ 
    220220VLC_PUBLIC_API char * mediacontrol_get_mrl( mediacontrol_Instance *self, 
    221                        mediacontrol_Exception *exception ); 
     221                                            mediacontrol_Exception *exception ); 
    222222 
    223223/***************************************************************************** 
  • src/control/mediacontrol_audio_video.c

    r445d63e r8ee62bb  
    206206 
    207207        i_duration = 1000 * private_mediacontrol_unit_convert( 
    208                                  self->p_media_player, 
    209                                  end->key, 
    210                                  mediacontrol_MediaTime, 
    211                                  end->value ); 
     208                                                              self->p_media_player, 
     209                                                              end->key, 
     210                                                              mediacontrol_MediaTime, 
     211                                                              end->value ); 
    212212 
    213213        mediacontrol_showtext( p_vout, DEFAULT_CHAN, psz_message, NULL, 
  • src/control/mediacontrol_core.c

    ra65760b r8ee62bb  
    9999    mediacontrol_Instance* retval; 
    100100    libvlc_exception_t ex; 
    101      
    102     libvlc_exception_init( &ex ); 
    103      
     101 
     102    libvlc_exception_init( &ex ); 
     103 
    104104    retval = ( mediacontrol_Instance* )malloc( sizeof( mediacontrol_Instance ) ); 
    105105    if( ! retval ) 
     
    195195    mediacontrol_exception_init( exception ); 
    196196    libvlc_exception_init( &ex ); 
    197      
     197 
    198198    p_media = libvlc_media_player_get_media( self->p_media_player, &ex ); 
    199199    HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); 
     
    214214        p_media = libvlc_media_new( self->p_instance, psz_name, &ex ); 
    215215        HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); 
    216          
     216 
    217217        if( a_position->value ) 
    218218        { 
     
    227227            HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); 
    228228        } 
    229          
     229 
    230230        libvlc_media_player_set_media( self->p_media_player, p_media, &ex ); 
    231231        HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); 
     
    286286    mediacontrol_exception_init( exception ); 
    287287    libvlc_exception_init( &ex ); 
    288      
     288 
    289289    p_media = libvlc_media_new( self->p_instance, psz_file, &ex ); 
    290290    HANDLE_LIBVLC_EXCEPTION_VOID( &ex ); 
     
    303303    mediacontrol_exception_init( exception ); 
    304304    libvlc_exception_init( &ex ); 
    305      
     305 
    306306    p_media = libvlc_media_player_get_media( self->p_media_player, &ex ); 
    307307    HANDLE_LIBVLC_EXCEPTION_NULL( &ex ); 
  • src/control/mediacontrol_util.c

    r445d63e r8ee62bb  
    7474        { 
    7575            double f_fps; 
    76        libvlc_exception_t ex; 
    77        libvlc_exception_init( &ex ); 
    78  
    79        f_fps = libvlc_media_player_get_rate( p_media_player, &ex ); 
    80        if( f_fps < 0 ) 
     76            libvlc_exception_t ex; 
     77            libvlc_exception_init( &ex ); 
     78 
     79            f_fps = libvlc_media_player_get_rate( p_media_player, &ex ); 
     80            if( f_fps < 0 ) 
    8181                return 0; 
    8282            else 
     
    9292        libvlc_exception_t ex; 
    9393        libvlc_exception_init( &ex ); 
    94          
     94 
    9595        f_fps = libvlc_media_player_get_rate( p_media_player, &ex ); 
    9696        if( f_fps < 0 ) 
     
    122122   movie clock time */ 
    123123libvlc_time_t 
    124 private_mediacontrol_position2microsecond( libvlc_media_player_t * p_media_player,  
     124private_mediacontrol_position2microsecond( libvlc_media_player_t * p_media_player, 
    125125                                           const mediacontrol_Position * pos ) 
    126126{ 
     
    216216{ 
    217217    mediacontrol_Exception* exception; 
    218   
     218 
    219219    exception = ( mediacontrol_Exception* )malloc( sizeof( mediacontrol_Exception ) ); 
    220220    mediacontrol_exception_init( exception );