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
2d6e21de
Commit
2d6e21de
authored
Feb 20, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: remove activity callback in favor of input-current
parent
7295d429
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
modules/control/dbus/dbus.c
modules/control/dbus/dbus.c
+4
-4
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+2
-2
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-2
src/playlist/engine.c
src/playlist/engine.c
+0
-2
src/playlist/thread.c
src/playlist/thread.c
+0
-2
No files found.
modules/control/dbus/dbus.c
View file @
2d6e21de
...
...
@@ -236,7 +236,7 @@ static int Open( vlc_object_t *p_this )
p_playlist
=
pl_Get
(
p_intf
);
p_sys
->
p_playlist
=
p_playlist
;
var_AddCallback
(
p_playlist
,
"
activity
"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"
input-current
"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"intf-change"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"volume"
,
AllCallback
,
p_intf
);
var_AddCallback
(
p_playlist
,
"mute"
,
AllCallback
,
p_intf
);
...
...
@@ -298,7 +298,7 @@ static void Close ( vlc_object_t *p_this )
vlc_cancel
(
p_sys
->
thread
);
vlc_join
(
p_sys
->
thread
,
NULL
);
var_DelCallback
(
p_playlist
,
"
activity
"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"
input-current
"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"intf-change"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"volume"
,
AllCallback
,
p_intf
);
var_DelCallback
(
p_playlist
,
"mute"
,
AllCallback
,
p_intf
);
...
...
@@ -981,7 +981,7 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
callback_info_t
info
=
{
.
signal
=
SIGNAL_NONE
};
// Wich event is it ?
if
(
!
strcmp
(
"
activity
"
,
psz_var
)
)
if
(
!
strcmp
(
"
input-current
"
,
psz_var
)
)
info
.
signal
=
SIGNAL_ITEM_CURRENT
;
else
if
(
!
strcmp
(
"volume"
,
psz_var
)
)
{
...
...
@@ -1036,7 +1036,7 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
}
/*****************************************************************************
* TrackChange: callback on playlist "
activity
"
* TrackChange: callback on playlist "
input-current
"
*****************************************************************************/
static
int
TrackChange
(
intf_thread_t
*
p_intf
)
{
...
...
modules/gui/macosx/intf.m
View file @
2d6e21de
...
...
@@ -688,7 +688,7 @@ static VLCMain *_o_sharedMainInstance = nil;
var_AddCallback
(
p_intf
->
p_libvlc
,
"intf-show"
,
ShowController
,
self
);
var_AddCallback
(
p_intf
->
p_libvlc
,
"intf-boss"
,
BossCallback
,
self
);
var_AddCallback
(
p_playlist
,
"item-change"
,
PLItemUpdated
,
self
);
var_AddCallback
(
p_playlist
,
"
activity
"
,
PLItemChanged
,
self
);
var_AddCallback
(
p_playlist
,
"
input-current
"
,
PLItemChanged
,
self
);
var_AddCallback
(
p_playlist
,
"playlist-item-append"
,
PLItemAppended
,
self
);
var_AddCallback
(
p_playlist
,
"playlist-item-deleted"
,
PLItemRemoved
,
self
);
var_AddCallback
(
p_playlist
,
"random"
,
PlaybackModeUpdated
,
self
);
...
...
@@ -861,7 +861,7 @@ static bool f_appExit = false;
var_DelCallback
(
p_intf
,
"dialog-question"
,
DialogCallback
,
self
);
var_DelCallback
(
p_intf
,
"dialog-progress-bar"
,
DialogCallback
,
self
);
var_DelCallback
(
p_playlist
,
"item-change"
,
PLItemUpdated
,
self
);
var_DelCallback
(
p_playlist
,
"
activity
"
,
PLItemChanged
,
self
);
var_DelCallback
(
p_playlist
,
"
input-current
"
,
PLItemChanged
,
self
);
var_DelCallback
(
p_playlist
,
"playlist-item-append"
,
PLItemAppended
,
self
);
var_DelCallback
(
p_playlist
,
"playlist-item-deleted"
,
PLItemRemoved
,
self
);
var_DelCallback
(
p_playlist
,
"random"
,
PlaybackModeUpdated
,
self
);
...
...
modules/gui/qt4/input_manager.cpp
View file @
2d6e21de
...
...
@@ -1020,7 +1020,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
/* Core Callbacks */
var_AddCallback
(
THEPL
,
"item-change"
,
ItemChanged
,
im
);
var_AddCallback
(
THEPL
,
"
activity
"
,
PLItemChanged
,
this
);
var_AddCallback
(
THEPL
,
"
input-current
"
,
PLItemChanged
,
this
);
var_AddCallback
(
THEPL
,
"leaf-to-parent"
,
LeafToParent
,
this
);
var_AddCallback
(
THEPL
,
"playlist-item-append"
,
PLItemAppended
,
this
);
var_AddCallback
(
THEPL
,
"playlist-item-deleted"
,
PLItemRemoved
,
this
);
...
...
@@ -1046,7 +1046,7 @@ MainInputManager::~MainInputManager()
emit
inputChanged
(
NULL
);
}
var_DelCallback
(
THEPL
,
"
activity
"
,
PLItemChanged
,
this
);
var_DelCallback
(
THEPL
,
"
input-current
"
,
PLItemChanged
,
this
);
var_DelCallback
(
THEPL
,
"item-change"
,
ItemChanged
,
im
);
var_DelCallback
(
THEPL
,
"leaf-to-parent"
,
LeafToParent
,
this
);
...
...
src/playlist/engine.c
View file @
2d6e21de
...
...
@@ -451,8 +451,6 @@ static void VariablesInit( playlist_t *p_playlist )
var_Create
(
p_playlist
,
"input-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"activity"
,
VLC_VAR_VOID
);
/* Variables to control playback */
var_Create
(
p_playlist
,
"playlist-autostart"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_playlist
,
"random"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
...
...
src/playlist/thread.c
View file @
2d6e21de
...
...
@@ -237,7 +237,6 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
p_sys
->
p_input
=
p_input_thread
;
PL_UNLOCK
;
var_TriggerCallback
(
p_playlist
,
"activity"
);
var_SetAddress
(
p_playlist
,
"input-current"
,
p_input_thread
);
PL_LOCK
;
...
...
@@ -460,7 +459,6 @@ static void LoopInput( playlist_t *p_playlist )
var_DelCallback
(
p_input
,
"intf-event"
,
InputEvent
,
p_playlist
);
input_Close
(
p_input
);
var_TriggerCallback
(
p_playlist
,
"activity"
);
PL_LOCK
;
return
;
}
...
...
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