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
29f6f780
Commit
29f6f780
authored
Apr 16, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zvbi: patch for building against older libzvbi0wq
parent
8b4543fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
modules/codec/zvbi.c
modules/codec/zvbi.c
+12
-0
No files found.
modules/codec/zvbi.c
View file @
29f6f780
...
@@ -102,6 +102,7 @@ vlc_module_end ()
...
@@ -102,6 +102,7 @@ vlc_module_end ()
****************************************************************************/
****************************************************************************/
// #define ZVBI_DEBUG
// #define ZVBI_DEBUG
// #define EVENTKEY
//Guessing table for missing "default region triplet"
//Guessing table for missing "default region triplet"
static
const
int
pi_default_triplet
[]
=
{
static
const
int
pi_default_triplet
[]
=
{
...
@@ -189,8 +190,11 @@ static int Opaque( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -189,8 +190,11 @@ static int Opaque( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
static
int
Position
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
static
int
Position
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
#if defined(EVENTKEY)
static
int
EventKey
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
static
int
EventKey
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
#endif
/*****************************************************************************
/*****************************************************************************
* Open: probe the decoder and return score
* Open: probe the decoder and return score
...
@@ -268,8 +272,10 @@ static int Open( vlc_object_t *p_this )
...
@@ -268,8 +272,10 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_text
=
var_CreateGetBool
(
p_dec
,
"vbi-text"
);
p_sys
->
b_text
=
var_CreateGetBool
(
p_dec
,
"vbi-text"
);
// var_AddCallback( p_dec, "vbi-text", Text, p_sys );
// var_AddCallback( p_dec, "vbi-text", Text, p_sys );
#if defined(EVENTKEY)
/* Listen for keys */
/* Listen for keys */
var_AddCallback
(
p_dec
->
p_libvlc
,
"key-pressed"
,
EventKey
,
p_dec
);
var_AddCallback
(
p_dec
->
p_libvlc
,
"key-pressed"
,
EventKey
,
p_dec
);
#endif
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
's'
,
'p'
,
'u'
,
' '
)
);
es_format_Init
(
&
p_dec
->
fmt_out
,
SPU_ES
,
VLC_FOURCC
(
's'
,
'p'
,
'u'
,
' '
)
);
if
(
p_sys
->
b_text
)
if
(
p_sys
->
b_text
)
...
@@ -290,7 +296,10 @@ static void Close( vlc_object_t *p_this )
...
@@ -290,7 +296,10 @@ static void Close( vlc_object_t *p_this )
var_DelCallback
(
p_dec
,
"vbi-position"
,
Position
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-position"
,
Position
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-opaque"
,
Opaque
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-opaque"
,
Opaque
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-page"
,
RequestPage
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-page"
,
RequestPage
,
p_sys
);
#if defined(EVENTKEY)
var_DelCallback
(
p_dec
->
p_libvlc
,
"key-pressed"
,
EventKey
,
p_dec
);
var_DelCallback
(
p_dec
->
p_libvlc
,
"key-pressed"
,
EventKey
,
p_dec
);
#endif
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
...
@@ -662,6 +671,7 @@ static int Position( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -662,6 +671,7 @@ static int Position( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
#if defined(EVENTKEY)
static
int
EventKey
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
static
int
EventKey
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
{
...
@@ -716,3 +726,5 @@ static int EventKey( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -716,3 +726,5 @@ static int EventKey( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
#endif
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