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
96998812
Commit
96998812
authored
Aug 22, 2009
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: ensure uri-encoded files are passed to the core
parent
84ade0ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+3
-1
modules/gui/qt4/dialogs/open.hpp
modules/gui/qt4/dialogs/open.hpp
+1
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+3
-1
No files found.
modules/gui/qt4/dialogs/open.cpp
View file @
96998812
...
...
@@ -339,7 +339,9 @@ void OpenDialog::finish( bool b_enqueue = false )
bool
b_start
=
!
i
&&
!
b_enqueue
;
input_item_t
*
p_input
;
p_input
=
input_item_New
(
p_intf
,
qtu
(
itemsMRL
[
i
]
),
NULL
);
char
*
psz_uri
=
make_URI
(
qtu
(
itemsMRL
[
i
]
)
);
p_input
=
input_item_New
(
p_intf
,
psz_uri
,
NULL
);
free
(
psz_uri
);
/* Insert options only for the first element.
We don't know how to edit that anyway. */
...
...
modules/gui/qt4/dialogs/open.hpp
View file @
96998812
...
...
@@ -29,6 +29,7 @@
#endif
#include <vlc_common.h>
#include <vlc_url.h>
#include "util/qvlcframe.hpp"
#include "ui/open.h"
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
96998812
...
...
@@ -418,10 +418,12 @@ void DialogsProvider::addFromSimple( bool pl, bool go)
files
.
sort
();
foreach
(
const
QString
&
file
,
files
)
{
playlist_Add
(
THEPL
,
qtu
(
toNativeSeparators
(
file
)
),
NULL
,
char
*
psz_uri
=
make_URI
(
qtu
(
file
)
);
playlist_Add
(
THEPL
,
psz_uri
,
NULL
,
go
?
(
PLAYLIST_APPEND
|
(
i
?
PLAYLIST_PREPARSE
:
PLAYLIST_GO
)
)
:
(
PLAYLIST_APPEND
|
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
pl
,
pl_Unlocked
);
free
(
psz_uri
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
toNativeSeparators
(
file
)
);
i
++
;
...
...
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