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
12f8c376
Commit
12f8c376
authored
Mar 28, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect the spu presence in the IM. Deactivate the teletext until any
good detection exist.
parent
dab72b3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+5
-3
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
12f8c376
...
...
@@ -61,6 +61,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
{
i_old_playing_status
=
END_S
;
b_had_audio
=
b_had_video
=
b_has_audio
=
b_has_video
=
false
;
b_has_subs
=
false
;
old_name
=
""
;
artUrl
=
""
;
p_input
=
NULL
;
...
...
@@ -312,13 +313,14 @@ void InputManager::UpdateTracks()
b_has_audio
=
val
.
i_int
>
0
;
var_Change
(
p_input
,
"video-es"
,
VLC_VAR_CHOICESCOUNT
,
&
val
,
NULL
);
b_has_video
=
val
.
i_int
>
0
;
msg_Dbg
(
p_input
,
"I have audio-video: %i %i"
,
b_has_audio
,
b_has_video
)
;
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_CHOICESCOUNT
,
&
val
,
NULL
);
b_has_subs
=
val
.
i_int
>
0
;
/* Update ZVBI status */
#ifdef ZVBI_COMPILED
/* Update teletext status*/
emit
teletextEnabled
(
true
);
/* FIXME */
if
(
b_has_subs
)
emit
teletextEnabled
(
false
);
/* FIXME */
#endif
}
...
...
modules/gui/qt4/input_manager.hpp
View file @
12f8c376
...
...
@@ -64,7 +64,7 @@ public:
bool
hasInput
()
{
return
p_input
&&
!
p_input
->
b_dead
&&
!
p_input
->
b_die
;
}
bool
hasAudio
()
{
return
b_has_audio
;
}
bool
hasVideo
()
{
return
b_has_video
;
}
bool
b_has_audio
,
b_has_video
,
b_had_audio
,
b_had_video
;
bool
b_has_audio
,
b_has_video
,
b_had_audio
,
b_had_video
,
b_has_subs
;
private:
intf_thread_t
*
p_intf
;
...
...
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