Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
206de041
Commit
206de041
authored
Aug 28, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamic_media_list.c: Fix compilation.
parent
6d9dc5e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
src/control/dynamic_media_list.c
src/control/dynamic_media_list.c
+0
-33
No files found.
src/control/dynamic_media_list.c
View file @
206de041
...
...
@@ -129,37 +129,6 @@ dynamic_list_remove_item( const libvlc_event_t * p_event, void * p_user_data )
//libvlc_media_descriptor_unlock( p_md );
}
/**************************************************************************
* dynamic_list_change_item (private) (Event Callback)
*
* This is called if the dynamic sublist's data provider adds a new item.
**************************************************************************/
static
void
dynamic_list_change_item
(
const
libvlc_event_t
*
p_event
,
void
*
p_user_data
)
{
/* Check if the item matches still our tag query */
libvlc_dynamic_media_list_t
*
p_dmlist
=
p_user_data
;
libvlc_media_descriptor_t
*
p_md
=
p_event
->
u
.
media_list_item_changed
.
item
;
int
index
;
libvlc_media_list_lock
(
p_dmlist
->
p_mlist
);
index
=
libvlc_media_list_index_of_item
(
p_dmlist
->
p_mlist
,
p_md
,
NULL
);
if
(
index
<
0
)
{
libvlc_media_list_unlock
(
p_dmlist
->
p_mlist
);
return
;
/* Not found, no prob, just ignore */
}
//libvlc_media_descriptor_lock( p_md );
if
(
!
libvlc_tag_query_match
(
p_dmlist
->
p_query
,
p_md
,
NULL
)
)
libvlc_media_list_remove_index
(
p_dmlist
->
p_mlist
,
index
,
NULL
);
//libvlc_media_descriptor_unlock( p_md );
libvlc_media_list_unlock
(
p_dmlist
->
p_mlist
);
}
/*
* Public libvlc functions
*/
...
...
@@ -227,8 +196,6 @@ libvlc_dynamic_media_list_new(
dynamic_list_propose_item
,
p_dmlist
,
p_e
);
libvlc_event_attach
(
p_em
,
libvlc_MediaListItemDeleted
,
dynamic_list_remove_item
,
p_dmlist
,
p_e
);
libvlc_event_attach
(
p_em
,
libvlc_MediaListItemChanged
,
dynamic_list_change_item
,
p_dmlist
,
p_e
);
libvlc_media_list_unlock
(
p_mlist
);
...
...
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