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
41e414d2
Commit
41e414d2
authored
Feb 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch vbi-page event in Qt4.
parent
2791f26e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+20
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
41e414d2
...
...
@@ -42,6 +42,8 @@ static int VolumeChanged( vlc_object_t *, const char *,
static
int
InputEvent
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
VbiEvent
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
/**********************************************************************
...
...
@@ -334,6 +336,17 @@ static int InputEvent( vlc_object_t *p_this, const char *,
QApplication
::
postEvent
(
im
,
event
);
return
VLC_SUCCESS
;
}
static
int
VbiEvent
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
param
)
{
InputManager
*
im
=
(
InputManager
*
)
param
;
IMEvent
*
event
=
new
IMEvent
(
ItemTeletextChanged_Type
,
0
);
if
(
event
)
QApplication
::
postEvent
(
im
,
event
);
return
VLC_SUCCESS
;
}
void
InputManager
::
UpdatePosition
()
{
/* Update position */
...
...
@@ -475,6 +488,13 @@ void InputManager::UpdateTeletext()
if
(
p_vbi
)
{
/* We deleted it (if not here, it does not harm), because
* var_AddCallback will silently add a duplicated one */
var_DelCallback
(
p_vbi
,
"vbi-page"
,
VbiEvent
,
this
);
/* This callback is not remove explicitly, but interfaces
* are guaranted to outlive input */
var_AddCallback
(
p_vbi
,
"vbi-page"
,
VbiEvent
,
this
);
i_page
=
var_GetInteger
(
p_vbi
,
"vbi-page"
);
b_transparent
=
!
var_GetBool
(
p_vbi
,
"vbi-opaque"
);
vlc_object_release
(
p_vbi
);
...
...
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