Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
77360d65
Commit
77360d65
authored
Mar 16, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: disc open: support different values for disclabel/discpath
parent
73a2214b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+14
-6
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
77360d65
...
...
@@ -355,7 +355,9 @@ DiscOpenPanel::DiscOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
while
(
*
drive
)
{
if
(
GetDriveTypeA
(
drive
)
==
DRIVE_CDROM
)
{
ui
.
deviceCombo
->
addItem
(
drive
);
}
/* go to next drive */
while
(
*
(
drive
++
)
);
...
...
@@ -475,17 +477,23 @@ void DiscOpenPanel::updateButtons()
/* Update the current MRL */
void
DiscOpenPanel
::
updateMRL
()
{
QString
mrl
=
""
;
QString
mrl
;
QString
discPath
;
QStringList
fileList
;
if
(
ui
.
deviceCombo
->
itemData
(
ui
.
deviceCombo
->
currentIndex
()
)
!=
QVariant
::
Invalid
)
discPath
=
ui
.
deviceCombo
->
itemData
(
ui
.
deviceCombo
->
currentIndex
()
).
toString
();
else
discPath
=
ui
.
deviceCombo
->
currentText
();
/* CDDAX and VCDX not implemented. TODO ? No. */
/* DVD */
if
(
ui
.
dvdRadioButton
->
isChecked
()
)
{
if
(
!
ui
.
dvdsimple
->
isChecked
()
)
mrl
=
"dvd://"
LOCALHOST
;
mrl
=
"dvd://"
LOCALHOST
+
discPath
;
else
mrl
=
"dvdsimple://"
LOCALHOST
;
mrl
+=
ui
.
deviceCombo
->
currentText
();
mrl
=
"dvdsimple://"
LOCALHOST
+
discPath
;
if
(
!
ui
.
dvdsimple
->
isChecked
()
)
emit
methodChanged
(
"dvdnav-caching"
);
else
...
...
@@ -500,7 +508,7 @@ void DiscOpenPanel::updateMRL()
/* VCD */
}
else
if
(
ui
.
vcdRadioButton
->
isChecked
()
)
{
mrl
=
"vcd://"
LOCALHOST
+
ui
.
deviceCombo
->
currentText
()
;
mrl
=
"vcd://"
LOCALHOST
+
discPath
;
emit
methodChanged
(
"vcd-caching"
);
if
(
ui
.
titleSpin
->
value
()
>
0
)
{
...
...
@@ -509,7 +517,7 @@ void DiscOpenPanel::updateMRL()
/* CDDA */
}
else
{
mrl
=
"cdda://"
LOCALHOST
+
ui
.
deviceCombo
->
currentText
()
;
mrl
=
"cdda://"
LOCALHOST
+
discPath
;
emit
methodChanged
(
"cdda-caching"
);
}
...
...
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