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
e0a120ef
Commit
e0a120ef
authored
May 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p_vlm is private data
parent
0a9fffb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
include/vlc_main.h
include/vlc_main.h
+0
-4
src/libvlc-common.c
src/libvlc-common.c
+6
-5
src/libvlc.h
src/libvlc.h
+3
-0
No files found.
include/vlc_main.h
View file @
e0a120ef
...
...
@@ -49,10 +49,6 @@ struct libvlc_int_t
vlc_object_t
*
p_interaction
;
///< interface interaction object
vlm_t
*
p_vlm
;
///< vlm if created from libvlc-common.
/// (this is clearly private and
// shouldn't be used)
void
*
p_stats_computer
;
///< Input thread computing stats (needs cleanup)
global_stats_t
*
p_stats
;
///< Global statistics
...
...
src/libvlc-common.c
View file @
e0a120ef
...
...
@@ -180,7 +180,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
p_libvlc
->
p_playlist
=
NULL
;
p_libvlc
->
p_interaction
=
NULL
;
p
_libvlc
->
p_vlm
=
NULL
;
p
riv
->
p_vlm
=
NULL
;
p_libvlc
->
psz_object_name
=
strdup
(
"libvlc"
);
priv
=
libvlc_priv
(
p_libvlc
);
...
...
@@ -769,8 +769,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
psz_parser
=
config_GetPsz
(
p_libvlc
,
"vlm-conf"
);
if
(
psz_parser
&&
*
psz_parser
)
{
p
_libvlc
->
p_vlm
=
vlm_New
(
p_libvlc
);
if
(
!
p
_libvlc
->
p_vlm
)
p
riv
->
p_vlm
=
vlm_New
(
p_libvlc
);
if
(
!
p
riv
->
p_vlm
)
msg_Err
(
p_libvlc
,
"VLM initialization failed"
);
}
free
(
psz_parser
);
...
...
@@ -932,6 +932,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
intf_thread_t
*
p_intf
=
NULL
;
vout_thread_t
*
p_vout
=
NULL
;
aout_instance_t
*
p_aout
=
NULL
;
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_libvlc
);
/* Ask the interfaces to stop and destroy them */
msg_Dbg
(
p_libvlc
,
"removing all interfaces"
);
...
...
@@ -979,9 +980,9 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
}
/* Destroy VLM if created in libvlc_InternalInit */
if
(
p
_libvlc
->
p_vlm
)
if
(
p
riv
->
p_vlm
)
{
vlm_Delete
(
p
_libvlc
->
p_vlm
);
vlm_Delete
(
p
riv
->
p_vlm
);
}
#endif
...
...
src/libvlc.h
View file @
e0a120ef
...
...
@@ -178,6 +178,9 @@ typedef struct libvlc_priv_t
bool
b_stats
;
///< Whether to collect stats
module_t
*
p_memcpy_module
;
///< Fast memcpy plugin used
vlm_t
*
p_vlm
;
///< VLM if created from libvlc-common.c
httpd_t
*
p_httpd
;
///< HTTP daemon (src/network/httpd.c)
}
libvlc_priv_t
;
static
inline
libvlc_priv_t
*
libvlc_priv
(
libvlc_int_t
*
libvlc
)
...
...
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