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
0a9fffb9
Commit
0a9fffb9
authored
May 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p_memcpy_module is private libvlc data
parent
9df28485
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
include/vlc_main.h
include/vlc_main.h
+0
-2
src/libvlc-common.c
src/libvlc-common.c
+6
-6
src/libvlc.h
src/libvlc.h
+2
-0
No files found.
include/vlc_main.h
View file @
0a9fffb9
...
@@ -66,8 +66,6 @@ struct libvlc_int_t
...
@@ -66,8 +66,6 @@ struct libvlc_int_t
int
i_verbose
;
///< info messages
int
i_verbose
;
///< info messages
bool
b_color
;
///< color messages?
bool
b_color
;
///< color messages?
module_t
*
p_memcpy_module
;
///< Fast memcpy plugin used
/* Structure storing the action name / key associations */
/* Structure storing the action name / key associations */
struct
hotkey
struct
hotkey
{
{
...
...
src/libvlc-common.c
View file @
0a9fffb9
...
@@ -708,7 +708,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -708,7 +708,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/*
/*
* Choose the best memcpy module
* Choose the best memcpy module
*/
*/
p
_libvlc
->
p_memcpy_module
=
module_Need
(
p_libvlc
,
"memcpy"
,
"$memcpy"
,
0
);
p
riv
->
p_memcpy_module
=
module_Need
(
p_libvlc
,
"memcpy"
,
"$memcpy"
,
0
);
priv
->
b_stats
=
config_GetInt
(
p_libvlc
,
"stats"
)
>
0
;
priv
->
b_stats
=
config_GetInt
(
p_libvlc
,
"stats"
)
>
0
;
priv
->
i_timers
=
0
;
priv
->
i_timers
=
0
;
...
@@ -747,9 +747,9 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -747,9 +747,9 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if
(
!
p_libvlc
->
p_playlist
)
if
(
!
p_libvlc
->
p_playlist
)
{
{
msg_Err
(
p_libvlc
,
"playlist initialization failed"
);
msg_Err
(
p_libvlc
,
"playlist initialization failed"
);
if
(
p
_libvlc
->
p_memcpy_module
!=
NULL
)
if
(
p
riv
->
p_memcpy_module
!=
NULL
)
{
{
module_Unneed
(
p_libvlc
,
p
_libvlc
->
p_memcpy_module
);
module_Unneed
(
p_libvlc
,
p
riv
->
p_memcpy_module
);
}
}
module_EndBank
(
p_libvlc
);
module_EndBank
(
p_libvlc
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -1056,10 +1056,10 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, bool b_release )
...
@@ -1056,10 +1056,10 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, bool b_release )
}
}
#endif
#endif
if
(
p
_libvlc
->
p_memcpy_module
)
if
(
p
riv
->
p_memcpy_module
)
{
{
module_Unneed
(
p_libvlc
,
p
_libvlc
->
p_memcpy_module
);
module_Unneed
(
p_libvlc
,
p
riv
->
p_memcpy_module
);
p
_libvlc
->
p_memcpy_module
=
NULL
;
p
riv
->
p_memcpy_module
=
NULL
;
}
}
/* Free module bank. It is refcounted, so we call this each time */
/* Free module bank. It is refcounted, so we call this each time */
...
...
src/libvlc.h
View file @
0a9fffb9
...
@@ -176,6 +176,8 @@ typedef struct libvlc_priv_t
...
@@ -176,6 +176,8 @@ typedef struct libvlc_priv_t
counter_t
**
pp_timers
;
///< Array of all timers
counter_t
**
pp_timers
;
///< Array of all timers
int
i_timers
;
///< Number of timers
int
i_timers
;
///< Number of timers
bool
b_stats
;
///< Whether to collect stats
bool
b_stats
;
///< Whether to collect stats
module_t
*
p_memcpy_module
;
///< Fast memcpy plugin used
}
libvlc_priv_t
;
}
libvlc_priv_t
;
static
inline
libvlc_priv_t
*
libvlc_priv
(
libvlc_int_t
*
libvlc
)
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