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
3cdad01a
Commit
3cdad01a
authored
Dec 16, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure vbi-opaque can be set from an interface.
parent
dbe0d748
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
modules/codec/zvbi.c
modules/codec/zvbi.c
+12
-7
No files found.
modules/codec/zvbi.c
View file @
3cdad01a
...
...
@@ -2,7 +2,7 @@
* zvbi.c : VBI and Teletext PES demux and decoder using libzvbi
*****************************************************************************
* Copyright (C) 2007, M2X
* $Id
:
$
* $Id$
*
* Authors: Derk-Jan Hartman <djhartman at m2x dot nl>
* Jean-Paul Saman <jpsaman at m2x dot nl>
...
...
@@ -208,8 +208,8 @@ 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
);
p_sys
->
b_opaque
=
var_CreateGetBool
(
p_dec
->
p_libvlc
,
"vbi-opaque"
);
var_AddCallback
(
p_dec
->
p_libvlc
,
"vbi-opaque"
,
Opaque
,
p_sys
);
p_sys
->
i_align
=
var_CreateGetInteger
(
p_dec
,
"vbi-position"
);
var_AddCallback
(
p_dec
,
"vbi-position"
,
Position
,
p_sys
);
...
...
@@ -237,6 +237,11 @@ static void Close( vlc_object_t *p_this )
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
var_Destroy
(
p_dec
->
p_libvlc
,
"vbi-opaque"
);
var_Destroy
(
p_dec
->
p_libvlc
,
"vbi-page"
);
var_DelCallback
(
p_dec
->
p_libvlc
,
"vbi-page"
,
RequestPage
,
p_sys
);
var_DelCallback
(
p_dec
->
p_libvlc
,
"vbi-opaque"
,
Opaque
,
p_sys
);
#ifdef HAVE_FFMPEG_SWSCALE_H
if
(
p_sys
->
p_image
)
image_HandlerDelete
(
p_sys
->
p_image
);
#endif
...
...
@@ -298,9 +303,9 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_sys
->
b_update
=
VLC_FALSE
;
p_sys
->
i_last_page
=
p_sys
->
i_wanted_page
;
#if
0
msg_
Dbg
( p_dec, "we now have page: %d ready for display",
p_sys->i_wanted_page );
#if
1
msg_
Info
(
p_dec
,
"we now have page: %d ready for display"
,
p_sys
->
i_wanted_page
);
#endif
/* If there is a page or sub to render, then we do that here */
/* Create the subpicture unit */
...
...
@@ -370,7 +375,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_spu
->
p_region
->
psz_text
=
strdup
(
&
p_text
[
8
]
);
p_spu
->
p_region
->
fmt
.
i_height
=
p_spu
->
p_region
->
fmt
.
i_visible_height
=
p_page
.
rows
+
1
;
msg_
Dbg
(
p_dec
,
"page %x-%x(%d)
\n
%s"
,
p_page
.
pgno
,
p_page
.
subno
,
i_total
,
p_text
);
msg_
Info
(
p_dec
,
"page %x-%x(%d)
\n
%s"
,
p_page
.
pgno
,
p_page
.
subno
,
i_total
,
p_text
);
}
else
{
...
...
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