Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6a77f290
Commit
6a77f290
authored
Dec 16, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't misuse p_this->p_libvlc for putting modules variables of zvbi.
parent
c366075e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
13 deletions
+46
-13
modules/codec/zvbi.c
modules/codec/zvbi.c
+9
-9
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+20
-2
src/control/video.c
src/control/video.c
+17
-2
No files found.
modules/codec/zvbi.c
View file @
6a77f290
...
@@ -204,12 +204,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -204,12 +204,12 @@ static int Open( vlc_object_t *p_this )
event_handler
,
p_dec
);
event_handler
,
p_dec
);
/* Create the var on vlc_global. */
/* Create the var on vlc_global. */
p_sys
->
i_wanted_page
=
var_CreateGetInteger
(
p_dec
->
p_libvlc
,
"vbi-page"
);
p_sys
->
i_wanted_page
=
var_CreateGetInteger
(
p_dec
,
"vbi-page"
);
var_AddCallback
(
p_dec
->
p_libvlc
,
"vbi-page"
,
var_AddCallback
(
p_dec
,
"vbi-page"
,
RequestPage
,
p_sys
);
RequestPage
,
p_sys
);
p_sys
->
b_opaque
=
var_CreateGetBool
(
p_dec
->
p_libvlc
,
"vbi-opaque"
);
p_sys
->
b_opaque
=
var_CreateGetBool
(
p_dec
,
"vbi-opaque"
);
var_AddCallback
(
p_dec
->
p_libvlc
,
"vbi-opaque"
,
Opaque
,
p_sys
);
var_AddCallback
(
p_dec
,
"vbi-opaque"
,
Opaque
,
p_sys
);
p_sys
->
i_align
=
var_CreateGetInteger
(
p_dec
,
"vbi-position"
);
p_sys
->
i_align
=
var_CreateGetInteger
(
p_dec
,
"vbi-position"
);
var_AddCallback
(
p_dec
,
"vbi-position"
,
Position
,
p_sys
);
var_AddCallback
(
p_dec
,
"vbi-position"
,
Position
,
p_sys
);
...
@@ -237,10 +237,10 @@ static void Close( vlc_object_t *p_this )
...
@@ -237,10 +237,10 @@ static void Close( vlc_object_t *p_this )
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
var_Destroy
(
p_dec
->
p_libvlc
,
"vbi-opaque"
);
var_Destroy
(
p_dec
,
"vbi-opaque"
);
var_Destroy
(
p_dec
->
p_libvlc
,
"vbi-page"
);
var_Destroy
(
p_dec
,
"vbi-page"
);
var_DelCallback
(
p_dec
->
p_libvlc
,
"vbi-page"
,
RequestPage
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-page"
,
RequestPage
,
p_sys
);
var_DelCallback
(
p_dec
->
p_libvlc
,
"vbi-opaque"
,
Opaque
,
p_sys
);
var_DelCallback
(
p_dec
,
"vbi-opaque"
,
Opaque
,
p_sys
);
#ifdef HAVE_FFMPEG_SWSCALE_H
#ifdef HAVE_FFMPEG_SWSCALE_H
if
(
p_sys
->
p_image
)
image_HandlerDelete
(
p_sys
->
p_image
);
if
(
p_sys
->
p_image
)
image_HandlerDelete
(
p_sys
->
p_image
);
...
@@ -473,7 +473,7 @@ static void event_handler( vbi_event *ev, void *user_data )
...
@@ -473,7 +473,7 @@ static void event_handler( vbi_event *ev, void *user_data )
if
(
ev
->
type
==
VBI_EVENT_TTX_PAGE
)
if
(
ev
->
type
==
VBI_EVENT_TTX_PAGE
)
{
{
/* msg_
Dbg
( p_dec, "Page %03x.%02x ",
/* msg_
Info
( p_dec, "Page %03x.%02x ",
ev->ev.ttx_page.pgno,
ev->ev.ttx_page.pgno,
ev->ev.ttx_page.subno & 0xFF);
ev->ev.ttx_page.subno & 0xFF);
*/
*/
...
...
modules/gui/qt4/input_manager.cpp
View file @
6a77f290
...
@@ -240,7 +240,16 @@ void InputManager::telexGotoPage( int page )
...
@@ -240,7 +240,16 @@ void InputManager::telexGotoPage( int page )
{
{
// TODO: this has only sense when telx codec is available
// TODO: this has only sense when telx codec is available
if
(
hasInput
()
)
if
(
hasInput
()
)
var_SetInteger
(
p_input
->
p_libvlc
,
"vbi-page"
,
page
);
{
vlc_object_t
*
p_vbi
;
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
var_SetInteger
(
p_vbi
,
"vbi-page"
,
page
);
vlc_object_release
(
p_vbi
);
}
}
}
}
void
InputManager
::
telexToggle
(
bool
b_enabled
)
void
InputManager
::
telexToggle
(
bool
b_enabled
)
...
@@ -252,7 +261,16 @@ void InputManager::telexSetTransparency( bool b_transp )
...
@@ -252,7 +261,16 @@ void InputManager::telexSetTransparency( bool b_transp )
{
{
// TODO: this has only sense when telx codec is available
// TODO: this has only sense when telx codec is available
if
(
hasInput
()
)
if
(
hasInput
()
)
var_SetBool
(
p_input
->
p_libvlc
,
"vbi-opaque"
,
b_transp
);
{
vlc_object_t
*
p_vbi
;
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
var_SetBool
(
p_input
->
p_libvlc
,
"vbi-opaque"
,
b_transp
);
vlc_object_release
(
p_vbi
);
}
}
}
}
void
InputManager
::
slower
()
void
InputManager
::
slower
()
...
...
src/control/video.c
View file @
6a77f290
...
@@ -486,12 +486,20 @@ int libvlc_video_get_teletext( libvlc_media_instance_t *p_mi,
...
@@ -486,12 +486,20 @@ int libvlc_video_get_teletext( libvlc_media_instance_t *p_mi,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
vout_thread_t
*
p_vout
=
GetVout
(
p_mi
,
p_e
);
vout_thread_t
*
p_vout
=
GetVout
(
p_mi
,
p_e
);
vlc_object_t
*
p_vbi
;
int
i_ret
=
-
1
;
int
i_ret
=
-
1
;
if
(
!
p_vout
)
if
(
!
p_vout
)
return
i_ret
;
return
i_ret
;
i_ret
=
var_GetInteger
(
p_vout
,
"vbi-page"
);
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_vout
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
i_ret
=
var_GetInteger
(
p_vout
,
"vbi-page"
);
vlc_object_release
(
p_vbi
);
}
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
return
i_ret
;
return
i_ret
;
}
}
...
@@ -500,12 +508,19 @@ void libvlc_video_set_teletext( libvlc_media_instance_t *p_mi, int i_page,
...
@@ -500,12 +508,19 @@ void libvlc_video_set_teletext( libvlc_media_instance_t *p_mi, int i_page,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
vout_thread_t
*
p_vout
=
GetVout
(
p_mi
,
p_e
);
vout_thread_t
*
p_vout
=
GetVout
(
p_mi
,
p_e
);
vlc_object_t
*
p_vbi
;
int
i_ret
=
-
1
;
int
i_ret
=
-
1
;
if
(
!
p_vout
)
if
(
!
p_vout
)
return
;
return
;
i_ret
=
var_SetInteger
(
p_vout
,
"vbi-page"
,
i_page
);
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_vout
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
i_ret
=
var_SetInteger
(
p_vbi
,
"vbi-page"
,
i_page
);
vlc_object_release
(
p_vbi
);
}
if
(
i_ret
)
if
(
i_ret
)
libvlc_exception_raise
(
p_e
,
libvlc_exception_raise
(
p_e
,
"Unexpected error while setting teletext page"
);
"Unexpected error while setting teletext page"
);
...
...
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