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
c5687ade
Commit
c5687ade
authored
Feb 16, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
567a3b09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
21 deletions
+9
-21
src/playlist/control.c
src/playlist/control.c
+5
-12
src/playlist/engine.c
src/playlist/engine.c
+4
-9
No files found.
src/playlist/control.c
View file @
c5687ade
...
...
@@ -98,7 +98,6 @@ int playlist_Control( playlist_t * p_playlist, int i_query,
static
int
PlaylistVAControl
(
playlist_t
*
p_playlist
,
int
i_query
,
va_list
args
)
{
playlist_item_t
*
p_item
,
*
p_node
;
vlc_value_t
val
;
PL_ASSERT_LOCKED
;
...
...
@@ -138,8 +137,7 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
case
PLAYLIST_PLAY
:
if
(
pl_priv
(
p_playlist
)
->
p_input
)
{
val
.
i_int
=
PLAYING_S
;
var_Set
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
val
);
var_SetInteger
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
PLAYING_S
);
break
;
}
else
...
...
@@ -153,17 +151,13 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
break
;
case
PLAYLIST_PAUSE
:
val
.
i_int
=
0
;
if
(
pl_priv
(
p_playlist
)
->
p_input
)
var_Get
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
&
val
);
if
(
val
.
i_int
==
PAUSE_S
)
if
(
pl_priv
(
p_playlist
)
->
p_input
&&
var_GetInteger
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
)
==
PAUSE_S
)
{
pl_priv
(
p_playlist
)
->
status
.
i_status
=
PLAYLIST_RUNNING
;
if
(
pl_priv
(
p_playlist
)
->
p_input
)
{
val
.
i_int
=
PLAYING_S
;
var_Set
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
val
);
var_SetInteger
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
PLAYING_S
);
}
}
else
...
...
@@ -171,8 +165,7 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
pl_priv
(
p_playlist
)
->
status
.
i_status
=
PLAYLIST_PAUSED
;
if
(
pl_priv
(
p_playlist
)
->
p_input
)
{
val
.
i_int
=
PAUSE_S
;
var_Set
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
val
);
var_SetInteger
(
pl_priv
(
p_playlist
)
->
p_input
,
"state"
,
PAUSE_S
);
}
}
break
;
...
...
src/playlist/engine.c
View file @
c5687ade
...
...
@@ -266,25 +266,20 @@ void set_current_status_node( playlist_t * p_playlist,
static
void
VariablesInit
(
playlist_t
*
p_playlist
)
{
vlc_value_t
val
;
/* These variables control updates */
var_Create
(
p_playlist
,
"intf-change"
,
VLC_VAR_BOOL
);
val
.
b_bool
=
true
;
var_Set
(
p_playlist
,
"intf-change"
,
val
);
var_SetBool
(
p_playlist
,
"intf-change"
,
true
);
var_Create
(
p_playlist
,
"item-change"
,
VLC_VAR_INTEGER
);
val
.
i_int
=
-
1
;
var_Set
(
p_playlist
,
"item-change"
,
val
);
var_SetInteger
(
p_playlist
,
"item-change"
,
-
1
);
var_Create
(
p_playlist
,
"item-deleted"
,
VLC_VAR_INTEGER
);
val
.
i_int
=
-
1
;
var_Set
(
p_playlist
,
"item-deleted"
,
val
);
var_SetInteger
(
p_playlist
,
"item-deleted"
,
-
1
);
var_Create
(
p_playlist
,
"item-append"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"playlist-current"
,
VLC_VAR_INTEGER
);
val
.
i_int
=
-
1
;
var_Set
(
p_playlist
,
"playlist-current"
,
val
);
var_SetInteger
(
p_playlist
,
"playlist-current"
,
-
1
);
var_Create
(
p_playlist
,
"activity"
,
VLC_VAR_INTEGER
);
var_SetInteger
(
p_playlist
,
"activity"
,
0
);
...
...
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