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
e1091d86
Commit
e1091d86
authored
Jan 14, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dbus controler: Fix path for the TrackListChange signal.
Fix #3232
parent
60f0938f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/control/dbus.c
modules/control/dbus.c
+4
-4
modules/control/dbus.h
modules/control/dbus.h
+2
-2
No files found.
modules/control/dbus.c
View file @
e1091d86
...
@@ -916,7 +916,7 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
...
@@ -916,7 +916,7 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
*****************************************************************************/
*****************************************************************************/
DBUS_SIGNAL
(
CapsChangeSignal
)
DBUS_SIGNAL
(
CapsChangeSignal
)
{
{
SIGNAL_INIT
(
"CapsChange"
);
SIGNAL_INIT
(
MPRIS_DBUS_PLAYER_PATH
,
"CapsChange"
);
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
ADD_INT32
(
&
((
intf_thread_t
*
)
p_data
)
->
p_sys
->
i_caps
);
ADD_INT32
(
&
((
intf_thread_t
*
)
p_data
)
->
p_sys
->
i_caps
);
...
@@ -928,7 +928,7 @@ DBUS_SIGNAL( CapsChangeSignal )
...
@@ -928,7 +928,7 @@ DBUS_SIGNAL( CapsChangeSignal )
*****************************************************************************/
*****************************************************************************/
DBUS_SIGNAL
(
TrackListChangeSignal
)
DBUS_SIGNAL
(
TrackListChangeSignal
)
{
/* emit the new tracklist lengh */
{
/* emit the new tracklist lengh */
SIGNAL_INIT
(
"TrackListChange"
);
SIGNAL_INIT
(
MPRIS_DBUS_TRACKLIST_PATH
,
"TrackListChange"
);
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
/* XXX: locking */
/* XXX: locking */
...
@@ -975,7 +975,7 @@ static int TrackListChangeEmit( intf_thread_t *p_intf, int signal, int i_node )
...
@@ -975,7 +975,7 @@ static int TrackListChangeEmit( intf_thread_t *p_intf, int signal, int i_node )
DBUS_SIGNAL
(
TrackChangeSignal
)
DBUS_SIGNAL
(
TrackChangeSignal
)
{
/* emit the metadata of the new item */
{
/* emit the metadata of the new item */
SIGNAL_INIT
(
"TrackChange"
);
SIGNAL_INIT
(
MPRIS_DBUS_PLAYER_PATH
,
"TrackChange"
);
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
input_item_t
*
p_item
=
(
input_item_t
*
)
p_data
;
input_item_t
*
p_item
=
(
input_item_t
*
)
p_data
;
...
@@ -990,7 +990,7 @@ DBUS_SIGNAL( TrackChangeSignal )
...
@@ -990,7 +990,7 @@ DBUS_SIGNAL( TrackChangeSignal )
DBUS_SIGNAL
(
StatusChangeSignal
)
DBUS_SIGNAL
(
StatusChangeSignal
)
{
/* send the updated status info on the bus */
{
/* send the updated status info on the bus */
SIGNAL_INIT
(
"StatusChange"
);
SIGNAL_INIT
(
MPRIS_DBUS_PLAYER_PATH
,
"StatusChange"
);
OUT_ARGUMENTS
;
OUT_ARGUMENTS
;
/* we're called from a callback of input_thread_t, so it can not be
/* we're called from a callback of input_thread_t, so it can not be
...
...
modules/control/dbus.h
View file @
e1091d86
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
dbus_message_unref( p_msg ); \
dbus_message_unref( p_msg ); \
return DBUS_HANDLER_RESULT_HANDLED
return DBUS_HANDLER_RESULT_HANDLED
#define SIGNAL_INIT( signal ) \
#define SIGNAL_INIT(
path,
signal ) \
DBusMessage *p_msg = dbus_message_new_signal(
MPRIS_DBUS_PLAYER_PATH
, \
DBusMessage *p_msg = dbus_message_new_signal(
path
, \
MPRIS_DBUS_INTERFACE, signal ); \
MPRIS_DBUS_INTERFACE, signal ); \
if( !p_msg ) return DBUS_HANDLER_RESULT_NEED_MEMORY; \
if( !p_msg ) return DBUS_HANDLER_RESULT_NEED_MEMORY; \
...
...
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