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
1f40daaf
Commit
1f40daaf
authored
Dec 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_discoverer.c: Publish media_discoverer_is_running().
parent
1eead51a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+3
-0
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+1
-0
src/control/media_discoverer.c
src/control/media_discoverer.c
+13
-0
No files found.
include/vlc/libvlc.h
View file @
1f40daaf
...
...
@@ -1051,6 +1051,9 @@ VLC_PUBLIC_API libvlc_media_list_t * libvlc_media_discoverer_media_list( libvlc_
VLC_PUBLIC_API
libvlc_event_manager_t
*
libvlc_media_discoverer_event_manager
(
libvlc_media_discoverer_t
*
p_mdis
);
VLC_PUBLIC_API
int
libvlc_media_discoverer_is_running
(
libvlc_media_discoverer_t
*
p_mdis
);
/**@} */
/*****************************************************************************
...
...
src/control/libvlc_internal.h
View file @
1f40daaf
...
...
@@ -209,6 +209,7 @@ struct libvlc_media_discoverer_t
libvlc_instance_t
*
p_libvlc_instance
;
services_discovery_t
*
p_sd
;
libvlc_media_list_t
*
p_mlist
;
vlc_bool_t
running
;
};
/*
...
...
src/control/media_discoverer.c
View file @
1f40daaf
...
...
@@ -84,6 +84,7 @@ static void services_discovery_started( const vlc_event_t * p_event,
{
libvlc_media_discoverer_t
*
p_mdis
=
user_data
;
libvlc_event_t
event
;
p_mdis
->
running
=
VLC_TRUE
;
event
.
type
=
libvlc_MediaDiscovererStarted
;
libvlc_event_send
(
p_mdis
->
p_event_manager
,
&
event
);
}
...
...
@@ -97,6 +98,7 @@ static void services_discovery_ended( const vlc_event_t * p_event,
{
libvlc_media_discoverer_t
*
p_mdis
=
user_data
;
libvlc_event_t
event
;
p_mdis
->
running
=
VLC_FALSE
;
event
.
type
=
libvlc_MediaDiscovererEnded
;
libvlc_event_send
(
p_mdis
->
p_event_manager
,
&
event
);
}
...
...
@@ -126,6 +128,7 @@ libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
p_mdis
->
p_libvlc_instance
=
p_inst
;
p_mdis
->
p_mlist
=
libvlc_media_list_new
(
p_inst
,
NULL
);
p_mdis
->
running
=
VLC_FALSE
;
p_mdis
->
p_event_manager
=
libvlc_event_manager_new
(
p_mdis
,
p_inst
,
NULL
);
...
...
@@ -207,3 +210,13 @@ libvlc_media_discoverer_event_manager( libvlc_media_discoverer_t * p_mdis )
return
p_mdis
->
p_event_manager
;
}
/**************************************************************************
* running (Public)
**************************************************************************/
int
libvlc_media_discoverer_is_running
(
libvlc_media_discoverer_t
*
p_mdis
)
{
return
p_mdis
->
running
;
}
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