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
563c5ec0
Commit
563c5ec0
authored
Oct 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fully privatize vlc_sd_internal_t
parent
67bb9bab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/playlist/playlist_internal.h
src/playlist/playlist_internal.h
+1
-8
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+10
-3
No files found.
src/playlist/playlist_internal.h
View file @
563c5ec0
...
...
@@ -41,14 +41,7 @@
#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
vlc_sd_internal_t
vlc_sd_internal_t
;
typedef
struct
playlist_private_t
{
...
...
src/playlist/services_discovery.c
View file @
563c5ec0
...
...
@@ -32,6 +32,14 @@
#include "playlist_internal.h"
#include "../libvlc.h"
struct
vlc_sd_internal_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
;
};
static
void
services_discovery_Destructor
(
vlc_object_t
*
p_obj
);
...
...
@@ -256,8 +264,7 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modul
}
/* Free in playlist_ServicesDiscoveryRemove */
struct
playlist_services_discovery_support_t
*
p_sds
;
p_sds
=
malloc
(
sizeof
(
struct
playlist_services_discovery_support_t
)
);
vlc_sd_internal_t
*
p_sds
=
malloc
(
sizeof
(
*
p_sds
)
);
if
(
!
p_sds
)
{
vlc_sd_Destroy
(
p_sd
);
...
...
@@ -315,7 +322,7 @@ int playlist_ServicesDiscoveryRemove( playlist_t * p_playlist,
const
char
*
psz_name
)
{
playlist_private_t
*
priv
=
pl_priv
(
p_playlist
);
struct
playlist_services_discovery_support
_t
*
p_sds
=
NULL
;
vlc_sd_internal
_t
*
p_sds
=
NULL
;
PL_LOCK
;
for
(
int
i
=
0
;
i
<
priv
->
i_sds
;
i
++
)
...
...
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