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
1cb32fae
Commit
1cb32fae
authored
Feb 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved Qt4 teletext button.
parent
ae4ee908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+20
-7
No files found.
modules/gui/qt4/input_manager.cpp
View file @
1cb32fae
...
...
@@ -463,21 +463,21 @@ void InputManager::UpdateTeletext()
/* Teletext is possible. Show the buttons */
emit
teletextPossible
(
b_enabled
);
msg_Err
(
p_intf
,
"InputManager::UpdateTeletext: %d %d"
,
b_enabled
,
i_teletext_es
);
/* If Teletext is selected */
if
(
b_enabled
&&
i_teletext_es
>=
0
)
{
/* Then, find the current page */
int
i_page
=
100
;
vlc_object_t
*
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
i_page
=
var_GetInteger
(
p_vbi
,
"vbi-page"
);
vlc_object_release
(
p_vbi
);
emit
newTelexPageSet
(
i_page
);
}
emit
newTelexPageSet
(
i_page
);
}
emit
teletextActivated
(
b_enabled
&&
i_teletext_es
>=
0
);
}
...
...
@@ -701,12 +701,25 @@ void InputManager::telexSetTransparency( bool b_transparentTelextext )
void
InputManager
::
activateTeletext
(
bool
b_enable
)
{
vlc_value_t
list
;
if
(
hasInput
()
&&
!
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_GETLIST
,
&
list
,
NULL
)
)
vlc_value_t
text
;
if
(
hasInput
()
&&
!
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_GETLIST
,
&
list
,
&
text
)
)
{
if
(
list
.
p_list
->
i_count
>
0
)
var_SetInteger
(
p_input
,
"spu-es"
,
b_enable
?
list
.
p_list
->
p_values
[
0
].
i_int
:
-
1
);
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_FREELIST
,
&
list
,
NULL
);
{
/* Prefer the page 100 if it is present */
int
i
;
for
(
i
=
0
;
i
<
text
.
p_list
->
i_count
;
i
++
)
{
/* The description is the page number as a string */
const
char
*
psz_page
=
text
.
p_list
->
p_values
[
i
].
psz_string
;
if
(
psz_page
&&
!
strcmp
(
psz_page
,
"100"
)
)
break
;
}
if
(
i
>=
list
.
p_list
->
i_count
)
i
=
0
;
var_SetInteger
(
p_input
,
"spu-es"
,
b_enable
?
list
.
p_list
->
p_values
[
i
].
i_int
:
-
1
);
}
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_FREELIST
,
&
list
,
&
text
);
}
}
...
...
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