Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
866dd6dc
Commit
866dd6dc
authored
Aug 16, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_list.c: Handle libvlc_MediaDescriptorSubItemAdded event.
parent
728d2811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
src/control/media_list.c
src/control/media_list.c
+25
-0
No files found.
src/control/media_list.c
View file @
866dd6dc
...
@@ -98,6 +98,23 @@ media_descriptor_changed( const libvlc_event_t * p_event, void * user_data )
...
@@ -98,6 +98,23 @@ media_descriptor_changed( const libvlc_event_t * p_event, void * user_data )
libvlc_event_send
(
p_mlist
->
p_event_manager
,
&
event
);
libvlc_event_send
(
p_mlist
->
p_event_manager
,
&
event
);
}
}
/**************************************************************************
* media_descriptor_subitem_added (private) (libvlc Event Callback )
*
* An item (which is a playlist) has gained sub child.
**************************************************************************/
static
void
media_descriptor_subitem_added
(
const
libvlc_event_t
*
p_event
,
void
*
user_data
)
{
libvlc_media_list_t
*
p_mlist
=
user_data
;
libvlc_media_descriptor_t
*
p_new_md
;
p_new_md
=
p_event
->
u
.
media_descriptor_subitem_added
.
new_child
;
/* For now, just add the new item to this media list */
libvlc_media_list_add_media_descriptor
(
p_mlist
,
p_new_md
,
NULL
);
}
/**************************************************************************
/**************************************************************************
* install_media_descriptor_observer (private)
* install_media_descriptor_observer (private)
*
*
...
@@ -111,6 +128,10 @@ install_media_descriptor_observer( libvlc_media_list_t * p_mlist,
...
@@ -111,6 +128,10 @@ install_media_descriptor_observer( libvlc_media_list_t * p_mlist,
libvlc_MediaDescriptorMetaChanged
,
libvlc_MediaDescriptorMetaChanged
,
media_descriptor_changed
,
media_descriptor_changed
,
p_mlist
,
NULL
);
p_mlist
,
NULL
);
libvlc_event_attach
(
p_md
->
p_event_manager
,
libvlc_MediaDescriptorSubItemAdded
,
media_descriptor_changed
,
p_mlist
,
NULL
);
}
}
/**************************************************************************
/**************************************************************************
...
@@ -126,6 +147,10 @@ uninstall_media_descriptor_observer( libvlc_media_list_t * p_mlist,
...
@@ -126,6 +147,10 @@ uninstall_media_descriptor_observer( libvlc_media_list_t * p_mlist,
libvlc_MediaDescriptorMetaChanged
,
libvlc_MediaDescriptorMetaChanged
,
media_descriptor_changed
,
media_descriptor_changed
,
p_mlist
,
NULL
);
p_mlist
,
NULL
);
libvlc_event_detach
(
p_md
->
p_event_manager
,
libvlc_MediaDescriptorSubItemAdded
,
media_descriptor_changed
,
p_mlist
,
NULL
);
}
}
/**************************************************************************
/**************************************************************************
...
...
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