Changeset 0cd5cdd740f72a453707e4e6166087ce9880c961
- 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
| rfded9ae |
r0cd5cdd |
|
| 358 | 358 | { |
|---|
| 359 | 359 | var_SetBool( p_playlist, "loop", on ? VLC_TRUE:VLC_FALSE ); |
|---|
| | 360 | config_PutInt( p_playlist, "loop", on ? 1: 0 ); |
|---|
| 360 | 361 | } |
|---|
| 361 | 362 | void PLModel::setRepeat( bool on ) |
|---|
| 362 | 363 | { |
|---|
| 363 | 364 | var_SetBool( p_playlist, "repeat", on ? VLC_TRUE:VLC_FALSE ); |
|---|
| | 365 | config_PutInt( p_playlist, "repeat", on ? 1: 0 ); |
|---|
| 364 | 366 | } |
|---|
| 365 | 367 | void PLModel::setRandom( bool on ) |
|---|
| 366 | 368 | { |
|---|
| 367 | 369 | var_SetBool( p_playlist, "random", on ? VLC_TRUE:VLC_FALSE ); |
|---|
| | 370 | config_PutInt( p_playlist, "random", on ? 1: 0 ); |
|---|
| 368 | 371 | } |
|---|
| 369 | 372 | |
|---|
| r0702b8f |
r0cd5cdd |
|
| 1619 | 1619 | add_bool( "random", 0, NULL, RANDOM_TEXT, RANDOM_LONGTEXT, VLC_FALSE ); |
|---|
| 1620 | 1620 | change_short('Z'); |
|---|
| | 1621 | change_autosave(); |
|---|
| 1621 | 1622 | add_bool( "loop", 0, NULL, LOOP_TEXT, LOOP_LONGTEXT, VLC_FALSE ); |
|---|
| 1622 | 1623 | change_short('L'); |
|---|
| | 1624 | change_autosave(); |
|---|
| 1623 | 1625 | add_bool( "repeat", 0, NULL, REPEAT_TEXT, REPEAT_LONGTEXT, VLC_FALSE ); |
|---|
| 1624 | 1626 | change_short('R'); |
|---|
| | 1627 | change_autosave(); |
|---|
| 1625 | 1628 | add_bool( "play-and-exit", 0, NULL, PAE_TEXT, PAE_LONGTEXT, VLC_FALSE ); |
|---|
| 1626 | 1629 | add_bool( "play-and-stop", 0, NULL, PAS_TEXT, PAS_LONGTEXT, VLC_FALSE ); |
|---|
| rec3f4c8 |
r0cd5cdd |
|
| 33 | 33 | res = f(in); |
|---|
| 34 | 34 | ASSERT( res != NULL, "NULL result" ); |
|---|
| 35 | | printf( "\n\"%s\"\n",res ); |
|---|
| 36 | 35 | ASSERT( strcmp( res, out ) == NULL, "" ); |
|---|
| 37 | 36 | |
|---|