Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
84a5171f
Commit
84a5171f
authored
Nov 26, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: make "activity" a void variable and simplify
parent
ac124a0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
src/playlist/engine.c
src/playlist/engine.c
+1
-2
src/playlist/thread.c
src/playlist/thread.c
+2
-10
No files found.
src/playlist/engine.c
View file @
84a5171f
...
@@ -426,8 +426,7 @@ static void VariablesInit( playlist_t *p_playlist )
...
@@ -426,8 +426,7 @@ static void VariablesInit( playlist_t *p_playlist )
var_Create
(
p_playlist
,
"item-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"item-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"input-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"input-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"activity"
,
VLC_VAR_INTEGER
);
var_Create
(
p_playlist
,
"activity"
,
VLC_VAR_VOID
);
var_SetInteger
(
p_playlist
,
"activity"
,
0
);
/* Variables to control playback */
/* Variables to control playback */
var_Create
(
p_playlist
,
"playlist-autostart"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_playlist
,
"playlist-autostart"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
...
...
src/playlist/thread.c
View file @
84a5171f
...
@@ -128,14 +128,6 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -128,14 +128,6 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
static
void
UpdateActivity
(
playlist_t
*
p_playlist
,
int
i_delta
)
{
PL_ASSERT_LOCKED
;
const
int
i_activity
=
var_GetInteger
(
p_playlist
,
"activity"
)
;
var_SetInteger
(
p_playlist
,
"activity"
,
i_activity
+
i_delta
);
}
/**
/**
* Synchronise the current index of the playlist
* Synchronise the current index of the playlist
* to match the index of the current item.
* to match the index of the current item.
...
@@ -233,7 +225,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
...
@@ -233,7 +225,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
p_sys
->
status
.
i_status
=
PLAYLIST_RUNNING
;
p_sys
->
status
.
i_status
=
PLAYLIST_RUNNING
;
UpdateActivity
(
p_playlist
,
DEFAULT_INPUT_ACTIVITY
);
var_TriggerCallback
(
p_playlist
,
"activity"
);
assert
(
p_sys
->
p_input
==
NULL
);
assert
(
p_sys
->
p_input
==
NULL
);
...
@@ -485,7 +477,7 @@ static int LoopInput( playlist_t *p_playlist )
...
@@ -485,7 +477,7 @@ static int LoopInput( playlist_t *p_playlist )
p_sys
->
p_input
=
NULL
;
p_sys
->
p_input
=
NULL
;
input_Close
(
p_input
);
input_Close
(
p_input
);
UpdateActivity
(
p_playlist
,
-
DEFAULT_INPUT_ACTIVITY
);
var_TriggerCallback
(
p_playlist
,
"activity"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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