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
f2955030
Commit
f2955030
authored
May 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retain SD name for matching purpose
parent
68c0d25f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
src/playlist/playlist_internal.h
src/playlist/playlist_internal.h
+10
-6
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+2
-0
No files found.
src/playlist/playlist_internal.h
View file @
f2955030
...
...
@@ -41,6 +41,15 @@
#include "fetcher.h"
#include "preparser.h"
typedef
struct
playlist_services_discovery_support_t
{
/* the playlist items for category and onelevel */
playlist_item_t
*
p_cat
;
playlist_item_t
*
p_one
;
services_discovery_t
*
p_sd
;
/**< Loaded service discovery modules */
char
*
psz_name
;
}
vlc_sd_internal_t
;
typedef
struct
playlist_private_t
{
playlist_t
public_data
;
...
...
@@ -50,12 +59,7 @@ typedef struct playlist_private_t
playlist_item_array_t
items_to_delete
;
/**< Array of items and nodes to
delete... At the very end. This sucks. */
struct
playlist_services_discovery_support_t
{
/* the playlist items for category and onelevel */
playlist_item_t
*
p_cat
;
playlist_item_t
*
p_one
;
services_discovery_t
*
p_sd
;
/**< Loaded service discovery modules */
}
**
pp_sds
;
vlc_sd_internal_t
**
pp_sds
;
int
i_sds
;
/**< Number of service discovery modules */
input_thread_t
*
p_input
;
/**< the input thread associated
* with the current item */
...
...
src/playlist/services_discovery.c
View file @
f2955030
...
...
@@ -289,6 +289,7 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modul
p_sds
->
p_sd
=
p_sd
;
p_sds
->
p_one
=
p_one
;
p_sds
->
p_cat
=
p_cat
;
p_sds
->
psz_name
=
strdup
(
psz_module
);
PL_LOCK
;
TAB_APPEND
(
pl_priv
(
p_playlist
)
->
i_sds
,
pl_priv
(
p_playlist
)
->
pp_sds
,
p_sds
);
...
...
@@ -357,6 +358,7 @@ int playlist_ServicesDiscoveryRemove( playlist_t * p_playlist,
PL_UNLOCK
;
vlc_sd_Destroy
(
p_sd
);
free
(
p_sds
->
psz_name
);
free
(
p_sds
);
return
VLC_SUCCESS
;
...
...
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