Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
483995a2
Commit
483995a2
authored
Apr 23, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
podcast: move callbacks to playlist
This SD plugin only works with VLC anyway.
parent
20e97e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+11
-9
No files found.
modules/services_discovery/podcast.c
View file @
483995a2
...
...
@@ -32,7 +32,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_services_discovery.h>
#include <vlc_playlist.h>
#include <vlc_network.h>
#include <assert.h>
...
...
@@ -122,6 +122,7 @@ static void SaveUrls( services_discovery_t *p_sd );
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
p_this
)
{
playlist_t
*
pl
=
pl_Get
(
p_this
);
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
malloc
(
sizeof
(
services_discovery_sys_t
)
);
...
...
@@ -144,16 +145,16 @@ static int Open( vlc_object_t *p_this )
p_sd
->
p_sys
=
p_sys
;
/* Launch the callback associated with this variable */
var_Create
(
p
_sd
,
"podcast-urls"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_AddCallback
(
p
_sd
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
var_Create
(
p
l
,
"podcast-urls"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_AddCallback
(
p
l
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
var_Create
(
p
_sd
,
"podcast-request"
,
VLC_VAR_STRING
);
var_AddCallback
(
p
_sd
,
"podcast-request"
,
Request
,
p_sys
);
var_Create
(
p
l
,
"podcast-request"
,
VLC_VAR_STRING
);
var_AddCallback
(
p
l
,
"podcast-request"
,
Request
,
p_sys
);
if
(
vlc_clone
(
&
p_sys
->
thread
,
Run
,
p_sd
,
VLC_THREAD_PRIORITY_LOW
))
{
var_DelCallback
(
p
_sd
,
"podcast-request"
,
Request
,
p_sys
);
var_DelCallback
(
p
_sd
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
var_DelCallback
(
p
l
,
"podcast-request"
,
Request
,
p_sys
);
var_DelCallback
(
p
l
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
vlc_cond_destroy
(
&
p_sys
->
wait
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
);
...
...
@@ -169,13 +170,14 @@ static void Close( vlc_object_t *p_this )
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
playlist_t
*
pl
=
pl_Get
(
p_this
);
int
i
;
vlc_cancel
(
p_sys
->
thread
);
vlc_join
(
p_sys
->
thread
,
NULL
);
var_DelCallback
(
p
_sd
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
var_DelCallback
(
p
_sd
,
"podcast-request"
,
Request
,
p_sys
);
var_DelCallback
(
p
l
,
"podcast-urls"
,
UrlsChange
,
p_sys
);
var_DelCallback
(
p
l
,
"podcast-request"
,
Request
,
p_sys
);
vlc_cond_destroy
(
&
p_sys
->
wait
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
...
...
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