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
ff007ad1
Commit
ff007ad1
authored
May 18, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: playlist enqueue, use the Open:: helper
parent
c4d2180d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+5
-15
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
ff007ad1
...
...
@@ -941,16 +941,10 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case
ACTION_ENQUEUEDIR
:
if
(
a
.
uris
.
isEmpty
()
)
break
;
p_input
=
input_item_New
(
a
.
uris
.
first
().
toLatin1
().
constData
(),
NULL
);
if
(
unlikely
(
p_input
==
NULL
)
)
break
;
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
THEPL
,
p_input
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
getPLRootType
()
==
ROOTTYPE_CURRENT_PLAYING
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
Open
::
openMRL
(
p_intf
,
a
.
uris
.
first
().
toLatin1
().
constData
(),
false
,
getPLRootType
()
==
ROOTTYPE_CURRENT_PLAYING
);
return
true
;
case
ACTION_ENQUEUEGENERIC
:
...
...
@@ -966,11 +960,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
VLC_INPUT_OPTION_TRUSTED
);
}
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
THEPL
,
p_input
,
PLAYLIST_APPEND
|
PLAYLIST_PREPARSE
,
PLAYLIST_END
,
true
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
Open
::
openInput
(
p_intf
,
p_input
,
uri
,
false
);
}
return
true
;
...
...
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