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
fd549c75
Commit
fd549c75
authored
May 25, 2007
by
Ken Self
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BDA fixes: no dvb-adapter, hide srate for dvb-t, freq always in kHz
parent
2991ed6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+3
-13
No files found.
modules/gui/qt4/components/open.cpp
View file @
fd549c75
...
@@ -599,15 +599,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -599,15 +599,8 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
addModuleAndLayouts
(
BDA_DEVICE
,
bda
,
"DVB DirectShow"
);
addModuleAndLayouts
(
BDA_DEVICE
,
bda
,
"DVB DirectShow"
);
/* bda Main */
/* bda Main */
QLabel
*
bdaDeviceLabel
=
new
QLabel
(
qtr
(
"Adapter card to tune"
)
);
QLabel
*
bdaTypeLabel
=
new
QLabel
(
qtr
(
"DVB Type:"
)
);
QLabel
*
bdaTypeLabel
=
new
QLabel
(
qtr
(
"DVB Type:"
)
);
bdaCard
=
new
QSpinBox
;
bdaCard
->
setAlignment
(
Qt
::
AlignRight
);
bdaDevLayout
->
addWidget
(
bdaDeviceLabel
,
0
,
0
);
bdaDevLayout
->
addWidget
(
bdaCard
,
0
,
2
,
1
,
2
);
bdas
=
new
QRadioButton
(
"DVB-S"
);
bdas
=
new
QRadioButton
(
"DVB-S"
);
bdas
->
setChecked
(
true
);
bdas
->
setChecked
(
true
);
bdac
=
new
QRadioButton
(
"DVB-C"
);
bdac
=
new
QRadioButton
(
"DVB-C"
);
...
@@ -637,7 +630,6 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -637,7 +630,6 @@ CaptureOpenPanel::CaptureOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
bdaPropLayout
->
addWidget
(
bdaSrate
,
1
,
1
);
bdaPropLayout
->
addWidget
(
bdaSrate
,
1
,
1
);
/* bda CONNECTs */
/* bda CONNECTs */
CuMRL
(
bdaCard
,
valueChanged
(
int
)
);
CuMRL
(
bdaFreq
,
valueChanged
(
int
)
);
CuMRL
(
bdaFreq
,
valueChanged
(
int
)
);
CuMRL
(
bdaSrate
,
valueChanged
(
int
)
);
CuMRL
(
bdaSrate
,
valueChanged
(
int
)
);
BUTTONACT
(
bdas
,
updateButtons
()
);
BUTTONACT
(
bdas
,
updateButtons
()
);
...
@@ -751,8 +743,8 @@ void CaptureOpenPanel::updateMRL()
...
@@ -751,8 +743,8 @@ void CaptureOpenPanel::updateMRL()
else
if
(
bdat
->
isChecked
()
)
mrl
=
"dvb-t://"
;
else
if
(
bdat
->
isChecked
()
)
mrl
=
"dvb-t://"
;
else
if
(
bdac
->
isChecked
()
)
mrl
=
"dvb-c://"
;
else
if
(
bdac
->
isChecked
()
)
mrl
=
"dvb-c://"
;
else
return
;
else
return
;
mrl
+=
" :dvb-adapter="
+
QString
(
"%1"
).
arg
(
bdaCard
->
value
()
);
mrl
+=
" :dvb-frequency="
+
QString
(
"%1"
).
arg
(
bdaFreq
->
value
()
);
mrl
+=
" :dvb-frequency="
+
QString
(
"%1"
).
arg
(
bdaFreq
->
value
()
);
if
(
bdas
->
isChecked
()
||
bdac
->
isChecked
()
)
mrl
+=
" :dvb-srate="
+
QString
(
"%1"
).
arg
(
bdaSrate
->
value
()
);
mrl
+=
" :dvb-srate="
+
QString
(
"%1"
).
arg
(
bdaSrate
->
value
()
);
break
;
break
;
case
DSHOW_DEVICE
:
case
DSHOW_DEVICE
:
...
@@ -774,8 +766,6 @@ void CaptureOpenPanel::updateButtons()
...
@@ -774,8 +766,6 @@ void CaptureOpenPanel::updateButtons()
if
(
dvbc
->
isChecked
()
||
dvbt
->
isChecked
()
)
dvbFreq
->
setSuffix
(
" Hz"
);
if
(
dvbc
->
isChecked
()
||
dvbt
->
isChecked
()
)
dvbFreq
->
setSuffix
(
" Hz"
);
break
;
break
;
case
BDA_DEVICE
:
case
BDA_DEVICE
:
if
(
bdas
->
isChecked
()
)
bdaFreq
->
setSuffix
(
" kHz"
);
if
(
bdac
->
isChecked
()
||
bdat
->
isChecked
()
)
bdaFreq
->
setSuffix
(
" Hz"
);
if
(
bdas
->
isChecked
()
||
bdac
->
isChecked
()
)
if
(
bdas
->
isChecked
()
||
bdac
->
isChecked
()
)
{
{
bdaSrate
->
show
();
bdaSrate
->
show
();
...
@@ -783,7 +773,7 @@ void CaptureOpenPanel::updateButtons()
...
@@ -783,7 +773,7 @@ void CaptureOpenPanel::updateButtons()
}
}
else
else
{
{
bdaSrate
->
show
();
bdaSrate
->
hide
();
bdaSrateLabel
->
hide
();
bdaSrateLabel
->
hide
();
}
}
break
;
break
;
...
...
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