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
70c75214
Commit
70c75214
authored
Oct 15, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] Fix crash when pressed play when input is DYYYYYING.
Close #2196
parent
3f6bd266
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+12
-11
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+4
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
70c75214
...
...
@@ -428,10 +428,13 @@ void InputManager::sliderUpdate( float new_pos )
void
InputManager
::
togglePlayPause
()
{
vlc_value_t
state
;
if
(
hasInput
()
)
{
var_Get
(
p_input
,
"state"
,
&
state
);
state
.
i_int
=
(
state
.
i_int
!=
PLAYING_S
)
?
PLAYING_S
:
PAUSE_S
;
var_Set
(
p_input
,
"state"
,
state
);
emit
statusChanged
(
state
.
i_int
);
}
}
void
InputManager
::
sectionPrev
()
...
...
@@ -741,18 +744,16 @@ void MainInputManager::prev()
void
MainInputManager
::
togglePlayPause
()
{
if
(
p_input
==
NULL
)
{
/* No input, play */
if
(
!
p_input
)
playlist_Play
(
THEPL
);
return
;
}
else
getIM
()
->
togglePlayPause
();
}
bool
MainInputManager
::
teletextState
()
{
im
=
getIM
();
if
(
im
->
hasInput
()
)
if
(
getIM
()
->
hasInput
()
)
{
const
int
i_teletext_es
=
var_GetInteger
(
getInput
(),
"teletext-es"
);
const
int
i_spu_es
=
var_GetInteger
(
getInput
(),
"spu-es"
);
...
...
modules/gui/qt4/input_manager.hpp
View file @
70c75214
...
...
@@ -65,6 +65,8 @@ public:
class
InputManager
:
public
QObject
{
Q_OBJECT
;
friend
class
MainInputManager
;
public:
InputManager
(
QObject
*
,
intf_thread_t
*
);
virtual
~
InputManager
();
...
...
@@ -107,7 +109,6 @@ private:
public
slots
:
void
setInput
(
input_thread_t
*
);
///< Our controlled input changed
void
sliderUpdate
(
float
);
///< User dragged the slider. We get new pos
void
togglePlayPause
();
/* SpeedRate Rate Management */
void
slower
();
void
faster
();
...
...
@@ -125,6 +126,8 @@ public slots:
/* A to B Loop */
void
setAtoB
();
private
slots
:
void
togglePlayPause
();
signals:
/// Send new position, new time and new length
...
...
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