Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
105598d5
Commit
105598d5
authored
May 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix playing from popup
parent
e496c16b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
32 deletions
+13
-32
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
+13
-32
No files found.
modules/gui/wxwidgets/dialogs/playlist.cpp
View file @
105598d5
...
...
@@ -1038,7 +1038,7 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) )
p_wxroot
=
(
PlaylistItem
*
)
treectrl
->
GetItemData
(
treectrl
->
GetRootItem
()
);
playlist_item_t
*
p_root
=
playlist_ItemGetById
(
p_playlist
,
p_wxroot
->
i_id
);
if
(
!
p_root
)
abort
(
);
assert
(
p_root
);
char
*
psz_name
=
wxFromLocale
(
search_string
);
playlist_LiveSearchUpdate
(
p_playlist
,
p_root
,
psz_name
);
Rebuild
(
VLC_TRUE
);
...
...
@@ -1509,40 +1509,21 @@ void Playlist::OnPopup( wxContextMenuEvent& event )
void
Playlist
::
OnPopupPlay
(
wxCommandEvent
&
event
)
{
playlist_item_t
*
p_popup_item
,
*
p_popup_parent
;
abort
();
LockPlaylist
(
p_intf
->
p_sys
,
p_playlist
);
p_popup_item
=
playlist_ItemGetById
(
p_playlist
,
i_popup_item
);
p_popup_parent
=
playlist_ItemGetById
(
p_playlist
,
i_popup_parent
);
if
(
p_popup_item
!=
NULL
)
p_popup_parent
=
p_popup_item
;
while
(
p_popup_parent
)
{
if
(
p_popup_item
->
i_children
>
-
1
)
{
if
(
event
.
GetId
()
==
PopupPlay_Event
&&
p_popup_item
->
i_children
>
0
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
1242
,
p_popup_item
,
p_popup_item
->
pp_children
[
0
]
);
}
else
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
1242
,
p_popup_item
,
NULL
);
}
}
else
{
if
(
event
.
GetId
()
==
PopupPlay_Event
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
1242
,
p_popup_parent
,
p_popup_item
);
}
}
if
(
p_popup_parent
==
p_current_treeroot
)
break
;
p_popup_parent
=
p_popup_parent
->
p_parent
;
}
if
(
p_popup_parent
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
1242
,
p_popup_parent
,
p_popup_item
);
}
UnlockPlaylist
(
p_intf
->
p_sys
,
p_playlist
);
}
...
...
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