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
323bdb9f
Commit
323bdb9f
authored
Jun 04, 2011
by
Mirsal Ennaime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: Remove legacy mpris1 signals from the tracklist implementation
parent
ac092194
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
57 deletions
+0
-57
modules/control/dbus/dbus_tracklist.c
modules/control/dbus/dbus_tracklist.c
+0
-51
modules/control/dbus/dbus_tracklist.h
modules/control/dbus/dbus_tracklist.h
+0
-6
No files found.
modules/control/dbus/dbus_tracklist.c
View file @
323bdb9f
...
@@ -289,26 +289,6 @@ DBUS_METHOD( CanEditTracks )
...
@@ -289,26 +289,6 @@ DBUS_METHOD( CanEditTracks )
REPLY_SEND
;
REPLY_SEND
;
}
}
/******************************************************************************
* TrackListChange: tracklist order / length change signal
*****************************************************************************/
DBUS_SIGNAL
(
TrackListChangeSignal
)
{
/* emit the new tracklist lengh */
SIGNAL_INIT
(
DBUS_MPRIS_TRACKLIST_INTERFACE
,
DBUS_MPRIS_TRACKLIST_PATH
,
"TrackListChange"
);
OUT_ARGUMENTS
;
playlist_t
*
p_playlist
=
((
intf_thread_t
*
)
p_data
)
->
p_sys
->
p_playlist
;
PL_LOCK
;
dbus_int32_t
i_elements
=
p_playlist
->
current
.
i_size
;
PL_UNLOCK
;
ADD_INT32
(
&
i_elements
);
SIGNAL_SEND
;
}
#define PROPERTY_MAPPING_BEGIN if( 0 ) {}
#define PROPERTY_MAPPING_BEGIN if( 0 ) {}
#define PROPERTY_FUNC( interface, property, function ) \
#define PROPERTY_FUNC( interface, property, function ) \
else if( !strcmp( psz_interface_name, interface ) && \
else if( !strcmp( psz_interface_name, interface ) && \
...
@@ -373,37 +353,6 @@ handle_tracklist ( DBusConnection *p_conn, DBusMessage *p_from, void *p_this )
...
@@ -373,37 +353,6 @@ handle_tracklist ( DBusConnection *p_conn, DBusMessage *p_from, void *p_this )
return
DBUS_HANDLER_RESULT_NOT_YET_HANDLED
;
return
DBUS_HANDLER_RESULT_NOT_YET_HANDLED
;
}
}
/*****************************************************************************
* TrackListChangeEmit: Emits the TrackListChange signal
*****************************************************************************/
/* FIXME: It is not called on tracklist reordering */
int
TrackListChangeEmit
(
intf_thread_t
*
p_intf
,
int
signal
,
int
i_node
)
{
// "playlist-item-append"
if
(
signal
==
SIGNAL_PLAYLIST_ITEM_APPEND
)
{
/* don't signal when items are added/removed in p_category */
playlist_t
*
p_playlist
=
p_intf
->
p_sys
->
p_playlist
;
PL_LOCK
;
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
p_playlist
,
i_node
);
assert
(
p_item
);
while
(
p_item
->
p_parent
)
p_item
=
p_item
->
p_parent
;
if
(
p_item
==
p_playlist
->
p_root_category
)
{
PL_UNLOCK
;
return
VLC_SUCCESS
;
}
PL_UNLOCK
;
}
if
(
p_intf
->
p_sys
->
b_dead
)
return
VLC_SUCCESS
;
TrackListChangeSignal
(
p_intf
->
p_sys
->
p_conn
,
p_intf
);
return
VLC_SUCCESS
;
}
#undef METHOD_FUNC
#undef METHOD_FUNC
/**
/**
...
...
modules/control/dbus/dbus_tracklist.h
View file @
323bdb9f
...
@@ -39,12 +39,6 @@ DBusHandlerResult handle_tracklist ( DBusConnection *p_conn,
...
@@ -39,12 +39,6 @@ DBusHandlerResult handle_tracklist ( DBusConnection *p_conn,
DBusMessage
*
p_from
,
DBusMessage
*
p_from
,
void
*
p_this
);
void
*
p_this
);
static
const
DBusObjectPathVTable
dbus_mpris_tracklist_vtable
=
{
NULL
,
handle_tracklist
,
/* handler function */
NULL
,
NULL
,
NULL
,
NULL
};
int
TrackListChangeEmit
(
intf_thread_t
*
,
int
,
int
);
int
TrackListPropertiesChangedEmit
(
intf_thread_t
*
,
vlc_dictionary_t
*
);
int
TrackListPropertiesChangedEmit
(
intf_thread_t
*
,
vlc_dictionary_t
*
);
#endif //dbus_tracklist.h
#endif //dbus_tracklist.h
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