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
456fa635
Commit
456fa635
authored
Aug 21, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamicoverlay: We need a commanddesc_static_t for non strdup()-ed initializer.
parent
46ef499f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
modules/video_filter/dynamicoverlay/dynamicoverlay.h
modules/video_filter/dynamicoverlay/dynamicoverlay.h
+17
-6
modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
...les/video_filter/dynamicoverlay/dynamicoverlay_commands.c
+1
-1
No files found.
modules/video_filter/dynamicoverlay/dynamicoverlay.h
View file @
456fa635
...
...
@@ -71,18 +71,29 @@ typedef struct commandparams_t
bool
b_visible
;
/*< visibility flag of overlay */
}
commandparams_t
;
typedef
int
(
*
parser_func_t
)(
char
*
psz_command
,
char
*
psz_end
,
commandparams_t
*
p_params
);
typedef
int
(
*
execute_func_t
)(
filter_t
*
p_filter
,
const
commandparams_t
*
p_params
,
commandparams_t
*
p_results
);
typedef
int
(
*
unparse_func_t
)(
const
commandparams_t
*
p_results
,
buffer_t
*
p_output
);
typedef
struct
commanddesc_t
{
char
*
psz_command
;
bool
b_atomic
;
int
(
*
pf_parser
)
(
char
*
psz_command
,
char
*
psz_end
,
commandparams_t
*
p_params
);
int
(
*
pf_execute
)
(
filter_t
*
p_filter
,
const
commandparams_t
*
p_params
,
commandparams_t
*
p_results
);
int
(
*
pf_unparse
)
(
const
commandparams_t
*
p_results
,
buffer_t
*
p_output
);
parser_func_t
pf_parser
;
execute_func_t
pf_execute
;
unparse_func_t
pf_unparse
;
}
commanddesc_t
;
typedef
struct
commanddesc_static_t
{
const
char
*
psz_command
;
bool
b_atomic
;
parser_func_t
pf_parser
;
execute_func_t
pf_execute
;
unparse_func_t
pf_unparse
;
}
commanddesc_static_t
;
typedef
struct
command_t
{
struct
commanddesc_t
*
p_command
;
...
...
modules/video_filter/dynamicoverlay/dynamicoverlay_commands.c
View file @
456fa635
...
...
@@ -792,7 +792,7 @@ static int exec_StartAtomic( filter_t *p_filter,
/*****************************************************************************
* Command functions
*****************************************************************************/
static
const
commanddesc_t
p_commands
[]
=
static
const
commanddesc_
static_
t
p_commands
[]
=
{
{
.
psz_command
=
"DataSharedMem"
,
.
b_atomic
=
true
,
...
...
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