Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
68a7c725
Commit
68a7c725
authored
Dec 08, 2004
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beos/InterfaceWindow.cpp: fixed a deadlock + pause button not responding
parent
f5a7e27a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
49 deletions
+45
-49
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+45
-49
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
68a7c725
...
@@ -441,25 +441,25 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
...
@@ -441,25 +441,25 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
break
;
break
;
case
START_PLAYBACK
:
case
START_PLAYBACK
:
/* starts playing in normal mode */
case
PAUSE_PLAYBACK
:
case
PAUSE_PLAYBACK
:
if
(
p_input
)
{
{
if
(
var_GetInteger
(
p_input
,
"state"
)
==
PAUSE_S
)
vlc_value_t
val
;
{
val
.
i_int
=
PLAYING_S
;
if
(
p_playlis
t
)
if
(
p_inpu
t
)
{
{
playlist_Play
(
p_playlist
);
var_Get
(
p_input
,
"state"
,
&
val
);
}
}
if
(
p_input
&&
val
.
i_int
!=
PAUSE_S
)
{
val
.
i_int
=
PAUSE_S
;
var_Set
(
p_input
,
"state"
,
val
);
}
}
else
else
{
{
var_SetInteger
(
p_input
,
"state"
,
PAUSE_S
);
playlist_Play
(
p_playlist
);
}
}
}
break
;
break
;
}
case
HEIGHTH_PLAY
:
case
HEIGHTH_PLAY
:
if
(
p_input
)
if
(
p_input
)
{
{
...
@@ -714,11 +714,7 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
...
@@ -714,11 +714,7 @@ void InterfaceWindow::MessageReceived( BMessage * p_message )
if
(
b_remove
&&
p_playlist
)
if
(
b_remove
&&
p_playlist
)
{
{
/* Empty playlist */
playlist_Clear
(
p_playlist
);
while
(
p_playlist
->
i_size
>
0
)
{
playlist_Delete
(
p_playlist
,
0
);
}
}
}
entry_ref
ref
;
entry_ref
ref
;
...
@@ -858,7 +854,7 @@ void InterfaceWindow::UpdateInterface()
...
@@ -858,7 +854,7 @@ void InterfaceWindow::UpdateInterface()
_SetMenusEnabled
(
false
);
_SetMenusEnabled
(
false
);
if
(
!
p
_playlist
||
p_playlist
->
i_size
<=
0
)
if
(
!
p
laylist_IsEmpty
(
p_playlist
)
)
{
{
p_mediaControl
->
SetProgress
(
0
);
p_mediaControl
->
SetProgress
(
0
);
...
...
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