Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0cd5cdd7
Commit
0cd5cdd7
authored
Sep 02, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remember random/loop/repeat
parent
0702b8f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
modules/gui/qt4/playlist_model.cpp
modules/gui/qt4/playlist_model.cpp
+3
-0
src/libvlc.h
src/libvlc.h
+3
-0
test/native/url.c
test/native/url.c
+0
-1
No files found.
modules/gui/qt4/playlist_model.cpp
View file @
0cd5cdd7
...
@@ -357,14 +357,17 @@ bool PLModel::hasLoop()
...
@@ -357,14 +357,17 @@ bool PLModel::hasLoop()
void
PLModel
::
setLoop
(
bool
on
)
void
PLModel
::
setLoop
(
bool
on
)
{
{
var_SetBool
(
p_playlist
,
"loop"
,
on
?
VLC_TRUE
:
VLC_FALSE
);
var_SetBool
(
p_playlist
,
"loop"
,
on
?
VLC_TRUE
:
VLC_FALSE
);
config_PutInt
(
p_playlist
,
"loop"
,
on
?
1
:
0
);
}
}
void
PLModel
::
setRepeat
(
bool
on
)
void
PLModel
::
setRepeat
(
bool
on
)
{
{
var_SetBool
(
p_playlist
,
"repeat"
,
on
?
VLC_TRUE
:
VLC_FALSE
);
var_SetBool
(
p_playlist
,
"repeat"
,
on
?
VLC_TRUE
:
VLC_FALSE
);
config_PutInt
(
p_playlist
,
"repeat"
,
on
?
1
:
0
);
}
}
void
PLModel
::
setRandom
(
bool
on
)
void
PLModel
::
setRandom
(
bool
on
)
{
{
var_SetBool
(
p_playlist
,
"random"
,
on
?
VLC_TRUE
:
VLC_FALSE
);
var_SetBool
(
p_playlist
,
"random"
,
on
?
VLC_TRUE
:
VLC_FALSE
);
config_PutInt
(
p_playlist
,
"random"
,
on
?
1
:
0
);
}
}
/************************* Lookups *****************************/
/************************* Lookups *****************************/
...
...
src/libvlc.h
View file @
0cd5cdd7
...
@@ -1618,10 +1618,13 @@ vlc_module_begin();
...
@@ -1618,10 +1618,13 @@ vlc_module_begin();
add_category_hint
(
N_
(
"Playlist"
),
PLAYLIST_CAT_LONGTEXT
,
VLC_FALSE
);
add_category_hint
(
N_
(
"Playlist"
),
PLAYLIST_CAT_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"random"
,
0
,
NULL
,
RANDOM_TEXT
,
RANDOM_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"random"
,
0
,
NULL
,
RANDOM_TEXT
,
RANDOM_LONGTEXT
,
VLC_FALSE
);
change_short
(
'Z'
);
change_short
(
'Z'
);
change_autosave
();
add_bool
(
"loop"
,
0
,
NULL
,
LOOP_TEXT
,
LOOP_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"loop"
,
0
,
NULL
,
LOOP_TEXT
,
LOOP_LONGTEXT
,
VLC_FALSE
);
change_short
(
'L'
);
change_short
(
'L'
);
change_autosave
();
add_bool
(
"repeat"
,
0
,
NULL
,
REPEAT_TEXT
,
REPEAT_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"repeat"
,
0
,
NULL
,
REPEAT_TEXT
,
REPEAT_LONGTEXT
,
VLC_FALSE
);
change_short
(
'R'
);
change_short
(
'R'
);
change_autosave
();
add_bool
(
"play-and-exit"
,
0
,
NULL
,
PAE_TEXT
,
PAE_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"play-and-exit"
,
0
,
NULL
,
PAE_TEXT
,
PAE_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"play-and-stop"
,
0
,
NULL
,
PAS_TEXT
,
PAS_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"play-and-stop"
,
0
,
NULL
,
PAS_TEXT
,
PAS_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"media-library"
,
1
,
NULL
,
ML_TEXT
,
ML_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"media-library"
,
1
,
NULL
,
ML_TEXT
,
ML_LONGTEXT
,
VLC_FALSE
);
...
...
test/native/url.c
View file @
0cd5cdd7
...
@@ -32,7 +32,6 @@ PyObject * test (conv_t f, const char *in, const char *out)
...
@@ -32,7 +32,6 @@ PyObject * test (conv_t f, const char *in, const char *out)
printf
(
"
\"
%s
\"
->
\"
%s
\"
?
\n
"
,
in
,
out
);
printf
(
"
\"
%s
\"
->
\"
%s
\"
?
\n
"
,
in
,
out
);
res
=
f
(
in
);
res
=
f
(
in
);
ASSERT
(
res
!=
NULL
,
"NULL result"
);
ASSERT
(
res
!=
NULL
,
"NULL result"
);
printf
(
"
\n\"
%s
\"\n
"
,
res
);
ASSERT
(
strcmp
(
res
,
out
)
==
NULL
,
""
);
ASSERT
(
strcmp
(
res
,
out
)
==
NULL
,
""
);
Py_INCREF
(
Py_None
);
Py_INCREF
(
Py_None
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment