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
0601ce74
Commit
0601ce74
authored
Nov 20, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/flat_media_list_view.c: Send WillAdd/Added WillDelete/Deleted events.
parent
b269d0ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/control/flat_media_list_view.c
src/control/flat_media_list_view.c
+5
-0
No files found.
src/control/flat_media_list_view.c
View file @
0601ce74
...
...
@@ -49,9 +49,12 @@ struct libvlc_media_list_view_private_t
static
void
ml_item_added
(
const
libvlc_event_t
*
p_event
,
libvlc_media_list_view_t
*
p_mlv
)
{
int
index
=
vlc_array_count
(
&
p_mlv
->
p_this_view_data
->
array
);
libvlc_media_descriptor_t
*
p_md
=
p_event
->
u
.
media_list_item_added
.
item
;
libvlc_media_descriptor_retain
(
p_md
);
libvlc_media_list_view_will_add_item
(
p_mlv
,
p_md
,
index
);
vlc_array_append
(
&
p_mlv
->
p_this_view_data
->
array
,
p_md
);
libvlc_media_list_view_item_added
(
p_mlv
,
p_md
,
index
);
}
/**************************************************************************
...
...
@@ -64,7 +67,9 @@ ml_item_removed( const libvlc_event_t * p_event, libvlc_media_list_view_t * p_ml
int
i
=
vlc_array_index_of_item
(
&
p_mlv
->
p_this_view_data
->
array
,
p_md
);
if
(
i
>=
0
)
{
libvlc_media_list_view_will_delete_item
(
p_mlv
,
p_md
,
i
);
vlc_array_remove
(
&
p_mlv
->
p_this_view_data
->
array
,
i
);
libvlc_media_list_view_item_deleted
(
p_mlv
,
p_md
,
i
);
libvlc_media_descriptor_release
(
p_md
);
}
}
...
...
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