Changeset 2f6ad030e73614e9254e3441fbc738e24341c17d

Show
Ignore:
Timestamp:
02/07/06 22:08:32 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1139346512 +0000
git-parent:

[de11230fbf681606705e3876f3a6a0b9849ab9da]

git-author:
Clément Stenac <zorglub@videolan.org> 1139346512 +0000
Message:

* get/set/toggle fullscreen
* Fix a bug in playlist_play

(Refs:#457)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    r8d995e6 r2f6ad03  
    477477    src/control/playlist.c \ 
    478478    src/control/input.c \ 
     479    src/control/video.c \ 
    479480    src/control/mediacontrol_core.c \ 
    480481    src/control/mediacontrol_util.c \ 
  • include/vlc/libvlc.h

    r661a6c1 r2f6ad03  
    230230float libvlc_input_get_position( libvlc_input_t *, libvlc_exception_t *); 
    231231 
     232 
     233void libvlc_toggle_fullscreen( libvlc_input_t *, libvlc_exception_t * ); 
     234 
     235 
    232236/** @} */ 
    233237 
  • src/control/playlist.c

    r661a6c1 r2f6ad03  
    3838        return; 
    3939    } 
    40     if( i_id >= 0 ) 
     40    if( i_id > 0 ) 
    4141    { 
    4242        /* Always use the current view when using libvlc */ 
  • test/libvlc_sample.c

    r68aa3ca r2f6ad03  
    2121    } 
    2222 
    23     libvlc_playlist_play( p_instance1, 0,NULL, NULL ); 
     23    fprintf (stderr, "Playing\n"); 
     24    libvlc_playlist_play( p_instance1, 0, 0,NULL, NULL ); 
     25    fprintf (stderr, "Playback started\n"); 
    2426 
    2527    while( 1 ) 
     
    4042            b_started = 1; 
    4143        } 
    42          
    43         fprintf( stderr, "Length %lli - Time %lli\n",  
     44 
     45        libvlc_toggle_fullscreen( p_input, &exception ); 
     46        if( libvlc_exception_raised( &exception ) ) 
     47        { 
     48            fprintf( stderr, "EX : %s\n", libvlc_exception_get_message( &exception ) ); 
     49        } 
     50        fprintf( stderr, "Length %lli - Time %lli - Full screen %i\n",  
    4451                              libvlc_input_get_length( p_input, NULL ), 
    45                               libvlc_input_get_time( p_input, NULL ) ); 
     52                              libvlc_input_get_time( p_input, NULL ),  
     53                              libvlc_get_fullscreen( p_input, NULL ) ); 
    4654        libvlc_input_free( p_input ); 
    4755    }