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
385ff17d
Commit
385ff17d
authored
Aug 23, 2007
by
Jean-Paul Saman
Committed by
Jean-Paul Saman
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add callback to vbi-opaque setting to change it at runtime from the gui.
parent
04372454
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
modules/codec/zvbi.c
modules/codec/zvbi.c
+14
-1
No files found.
modules/codec/zvbi.c
View file @
385ff17d
...
...
@@ -103,6 +103,9 @@ static void event_handler(vbi_event *ev, void *user_data);
static
int
RequestPage
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
static
int
Opaque
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
/*****************************************************************************
* Open: probe the decoder and return score
*****************************************************************************
...
...
@@ -147,7 +150,7 @@ static int Open( vlc_object_t *p_this )
var_AddCallback
(
p_dec
->
p_libvlc
,
"vbi-page"
,
RequestPage
,
p_sys
);
p_sys
->
b_opaque
=
var_CreateGetBool
(
p_dec
,
"vbi-opaque"
);
var_AddCallback
(
p_dec
,
"vbi-opaque"
,
Opaque
,
p_sys
);
return
VLC_SUCCESS
;
}
...
...
@@ -374,3 +377,13 @@ static int RequestPage( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
}
static
int
Opaque
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
decoder_sys_t
*
p_sys
=
p_data
;
if
(
p_sys
)
p_sys
->
b_opaque
=
newval
.
b_bool
;
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