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
b7c2ed30
Commit
b7c2ed30
authored
Jun 17, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use commandline value if available for setting teletextGoto field.
parent
ef9f3691
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+15
-3
No files found.
modules/gui/qt4/input_manager.cpp
View file @
b7c2ed30
...
...
@@ -325,8 +325,7 @@ void InputManager::UpdateTracks()
/* Update ZVBI status */
#ifdef ZVBI_COMPILED
/* Update teletext status*/
if
(
b_has_subs
)
emit
teletextEnabled
(
false
);
/* FIXME */
emit
teletextEnabled
(
b_has_subs
);
/* FIXME */
#endif
}
...
...
@@ -413,8 +412,20 @@ void InputManager::telexGotoPage( int page )
void
InputManager
::
telexToggle
(
bool
b_enabled
)
{
int
i_page
=
b_enabled
?
100
:
0
;
int
i_page
=
100
;
if
(
hasInput
()
)
{
vlc_object_t
*
p_vbi
;
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
);
}
}
i_page
=
b_enabled
?
i_page
:
0
;
telexGotoPage
(
i_page
);
}
...
...
@@ -660,6 +671,7 @@ static int ChangeSPU( vlc_object_t *p_this, const char *var, vlc_value_t o,
{
InputManager
*
im
=
(
InputManager
*
)
param
;
im
->
b_has_subs
=
true
;
im
->
telexToggle
(
im
->
b_has_subs
);
return
VLC_SUCCESS
;
}
...
...
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