Changeset 0cd5cdd740f72a453707e4e6166087ce9880c961

Show
Ignore:
Timestamp:
09/03/06 00:33:44 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1157236424 +0000
git-parent:

[0702b8f8e48dca927ff62d00e0a37f83dacd1987]

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

Remember random/loop/repeat

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/playlist_model.cpp

    rfded9ae r0cd5cdd  
    358358{ 
    359359    var_SetBool( p_playlist, "loop", on ? VLC_TRUE:VLC_FALSE ); 
     360    config_PutInt( p_playlist, "loop", on ? 1: 0 ); 
    360361} 
    361362void PLModel::setRepeat( bool on ) 
    362363{ 
    363364    var_SetBool( p_playlist, "repeat", on ? VLC_TRUE:VLC_FALSE ); 
     365    config_PutInt( p_playlist, "repeat", on ? 1: 0 ); 
    364366} 
    365367void PLModel::setRandom( bool on ) 
    366368{ 
    367369    var_SetBool( p_playlist, "random", on ? VLC_TRUE:VLC_FALSE ); 
     370    config_PutInt( p_playlist, "random", on ? 1: 0 ); 
    368371} 
    369372 
  • src/libvlc.h

    r0702b8f r0cd5cdd  
    16191619    add_bool( "random", 0, NULL, RANDOM_TEXT, RANDOM_LONGTEXT, VLC_FALSE ); 
    16201620        change_short('Z'); 
     1621        change_autosave(); 
    16211622    add_bool( "loop", 0, NULL, LOOP_TEXT, LOOP_LONGTEXT, VLC_FALSE ); 
    16221623        change_short('L'); 
     1624        change_autosave(); 
    16231625    add_bool( "repeat", 0, NULL, REPEAT_TEXT, REPEAT_LONGTEXT, VLC_FALSE ); 
    16241626        change_short('R'); 
     1627        change_autosave(); 
    16251628    add_bool( "play-and-exit", 0, NULL, PAE_TEXT, PAE_LONGTEXT, VLC_FALSE ); 
    16261629    add_bool( "play-and-stop", 0, NULL, PAS_TEXT, PAS_LONGTEXT, VLC_FALSE ); 
  • test/native/url.c

    rec3f4c8 r0cd5cdd  
    3333    res = f(in); 
    3434    ASSERT( res != NULL, "NULL result" ); 
    35     printf( "\n\"%s\"\n",res ); 
    3635    ASSERT( strcmp( res, out ) == NULL, "" ); 
    3736