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
67bda232
Commit
67bda232
authored
Mar 09, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't send twice the signal when an item is added or removed
parent
1b3187cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
modules/control/dbus.c
modules/control/dbus.c
+16
-4
No files found.
modules/control/dbus.c
View file @
67bda232
...
...
@@ -837,15 +837,27 @@ DBUS_SIGNAL( TrackListChangeSignal )
/*****************************************************************************
* TrackListChangeEmit: Emits the TrackListChange signal
*****************************************************************************/
/* FIXME: It is not called on tracklist reorder and seems to be called
* twice on element addition / removal */
/* FIXME: It is not called on tracklist reordering */
static
int
TrackListChangeEmit
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_var
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
newval
);
VLC_UNUSED
(
oldval
);
intf_thread_t
*
p_intf
=
p_data
;
if
(
!
strcmp
(
psz_var
,
"item-append"
)
||
!
strcmp
(
psz_var
,
"item-remove"
)
)
{
/* don't signal when items are added/removed in p_category */
playlist_t
*
p_playlist
=
(
playlist_t
*
)
p_this
;
playlist_add_t
*
p_add
=
newval
.
p_address
;
playlist_item_t
*
p_item
;
p_item
=
playlist_ItemGetById
(
p_playlist
,
p_add
->
i_node
,
VLC_TRUE
);
assert
(
p_item
);
while
(
p_item
->
p_parent
)
p_item
=
p_item
->
p_parent
;
if
(
p_item
==
p_playlist
->
p_root_category
)
return
VLC_SUCCESS
;
}
if
(
p_intf
->
b_dead
)
return
VLC_SUCCESS
;
...
...
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