Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
f359c8f7
Commit
f359c8f7
authored
Dec 03, 2003
by
Rocky Bernstein
Browse files
Fix bug in not updating playlist when hitting next/previous control
buttons (and simplify code at the same time).
parent
b642af72
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/wxwindows/interface.cpp
View file @
f359c8f7
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001,2003 VideoLAN
* $Id: interface.cpp,v 1.7
3
2003/12/03 0
0:24:16
rocky Exp $
* $Id: interface.cpp,v 1.7
4
2003/12/03 0
4:19:59
rocky Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -1204,13 +1204,10 @@ void Interface::OnPrevStream( wxCommandEvent& WXUNUSED(event) )
if
(
p_playlist
->
p_input
->
stream
.
p_selected_area
->
i_id
>
1
)
{
vlc_value_t
val
;
val
.
b_bool
=
VLC_TRUE
;
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
var_Set
(
p_playlist
->
p_input
,
"prev-title"
,
val
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
vlc_object_release
(
p_playlist
);
return
;
}
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
}
else
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
...
...
@@ -1237,13 +1234,10 @@ void Interface::OnNextStream( wxCommandEvent& WXUNUSED(event) )
p_playlist
->
p_input
->
stream
.
i_area_nb
-
1
)
{
vlc_value_t
val
;
val
.
b_bool
=
VLC_TRUE
;
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
var_Set
(
p_playlist
->
p_input
,
"next-title"
,
val
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
vlc_object_release
(
p_playlist
);
return
;
}
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
}
else
vlc_mutex_unlock
(
&
p_playlist
->
p_input
->
stream
.
stream_lock
);
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
...
...
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