Commit 5d5eeb9e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: remove V4L1

parent 4b002b9a
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
.replaceInStrings( QRegExp("^"), "/dev/" ) \ .replaceInStrings( QRegExp("^"), "/dev/" ) \
); );
static const char *psz_devModule[] = { "v4l", "v4l2", "pvr", "dvb", "bda", static const char *psz_devModule[] = { "v4l2", "pvr", "dvb", "bda",
"dshow", "screen", "jack" }; "dshow", "screen", "jack" };
/************************************************************************** /**************************************************************************
...@@ -871,51 +871,6 @@ void CaptureOpenPanel::initialize() ...@@ -871,51 +871,6 @@ void CaptureOpenPanel::initialize()
CuMRL( v4l2StdBox, currentIndexChanged ( int ) ); CuMRL( v4l2StdBox, currentIndexChanged ( int ) );
} }
/*******
* V4L *
*******/
if( module_exists( "v4l" ) ){
addModuleAndLayouts( V4L_DEVICE, v4l, "Video for Linux", QGridLayout );
/* V4l Main panel */
QLabel *v4lVideoDeviceLabel = new QLabel( qtr( "Video device name" ) );
v4lDevLayout->addWidget( v4lVideoDeviceLabel, 0, 0 );
v4lVideoDevice = new QLineEdit;
v4lDevLayout->addWidget( v4lVideoDevice, 0, 1 );
QLabel *v4lAudioDeviceLabel = new QLabel( qtr( "Audio device name" ) );
v4lDevLayout->addWidget( v4lAudioDeviceLabel, 1, 0 );
v4lAudioDevice = new QLineEdit;
v4lDevLayout->addWidget( v4lAudioDevice, 1, 1 );
/* V4l Props panel */
QLabel *v4lNormLabel = new QLabel( qtr( "Norm" ) );
v4lPropLayout->addWidget( v4lNormLabel, 0 , 0 );
v4lNormBox = new QComboBox;
setfillVLCConfigCombo( "v4l-norm", p_intf, v4lNormBox );
v4lPropLayout->addWidget( v4lNormBox, 0 , 1 );
QLabel *v4lFreqLabel = new QLabel( qtr( "Frequency" ) );
v4lPropLayout->addWidget( v4lFreqLabel, 1 , 0 );
v4lFreq = new QSpinBox;
v4lFreq->setAlignment( Qt::AlignRight );
v4lFreq->setSuffix(" kHz");
setSpinBoxFreq( v4lFreq );
v4lPropLayout->addWidget( v4lFreq, 1 , 1 );
v4lPropLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ),
2, 0, 2, 1 );
/* v4l CONNECTs */
CuMRL( v4lVideoDevice, textChanged( const QString& ) );
CuMRL( v4lAudioDevice, textChanged( const QString& ) );
CuMRL( v4lFreq, valueChanged ( int ) );
CuMRL( v4lNormBox, currentIndexChanged ( int ) );
}
/******* /*******
* JACK * * JACK *
*******/ *******/
...@@ -1197,12 +1152,6 @@ void CaptureOpenPanel::updateMRL() ...@@ -1197,12 +1152,6 @@ void CaptureOpenPanel::updateMRL()
emit methodChanged( "dshow-caching" ); emit methodChanged( "dshow-caching" );
break; break;
#else #else
case V4L_DEVICE:
fileList << "v4l://" + v4lVideoDevice->text();
mrl += " :input-slave=alsa://" + v4lAudioDevice->text();
mrl += " :v4l-norm=" + QString::number( v4lNormBox->currentIndex() );
mrl += " :v4l-frequency=" + QString::number( v4lFreq->value() );
break;
case V4L2_DEVICE: case V4L2_DEVICE:
fileList << "v4l2://" + v4l2VideoDevice->currentText(); fileList << "v4l2://" + v4l2VideoDevice->currentText();
mrl += " :input-slave=alsa://" + v4l2AudioDevice->currentText(); mrl += " :input-slave=alsa://" + v4l2AudioDevice->currentText();
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
enum enum
{ {
V4L_DEVICE,
V4L2_DEVICE, V4L2_DEVICE,
PVR_DEVICE, PVR_DEVICE,
DVB_DEVICE, DVB_DEVICE,
...@@ -211,11 +210,10 @@ private: ...@@ -211,11 +210,10 @@ private:
#else #else
QRadioButton *dvbs, *dvbt, *dvbc; QRadioButton *dvbs, *dvbt, *dvbc;
QLabel *dvbBandLabel, *dvbSrateLabel; QLabel *dvbBandLabel, *dvbSrateLabel;
QSpinBox *v4lFreq, *pvrFreq, *pvrBitr; QSpinBox *pvrFreq, *pvrBitr;
QLineEdit *v4lVideoDevice, *v4lAudioDevice;
QComboBox *v4l2VideoDevice, *v4l2AudioDevice; QComboBox *v4l2VideoDevice, *v4l2AudioDevice;
QLineEdit *pvrDevice, *pvrRadioDevice; QLineEdit *pvrDevice, *pvrRadioDevice;
QComboBox *v4lNormBox, *v4l2StdBox, *pvrNormBox, *dvbBandBox; QComboBox *v4l2StdBox, *pvrNormBox, *dvbBandBox;
QSpinBox *dvbCard, *dvbFreq, *dvbSrate; QSpinBox *dvbCard, *dvbFreq, *dvbSrate;
QSpinBox *jackChannels, *jackCaching; QSpinBox *jackChannels, *jackCaching;
QCheckBox *jackPace, *jackConnect; QCheckBox *jackPace, *jackConnect;
......
...@@ -507,8 +507,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -507,8 +507,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#ifdef WIN32 #ifdef WIN32
TestCaC( "dshow-caching" ); TestCaC( "dshow-caching" );
#else #else
if (module_exists ("v4l"))
TestCaC( "v4l-caching" );
if (module_exists ("access_jack")) if (module_exists ("access_jack"))
TestCaC( "jack-input-caching" ); TestCaC( "jack-input-caching" );
if (module_exists ("v4l2")) if (module_exists ("v4l2"))
...@@ -803,8 +801,6 @@ void SPrefsPanel::apply() ...@@ -803,8 +801,6 @@ void SPrefsPanel::apply()
#ifdef WIN32 #ifdef WIN32
CaC( "dshow-caching" ); CaC( "dshow-caching" );
#else #else
if (module_exists ( "v4l" ))
CaC( "v4l-caching" );
if (module_exists ( "access_jack" )) if (module_exists ( "access_jack" ))
CaC( "jack-input-caching" ); CaC( "jack-input-caching" );
if (module_exists ( "v4l2" )) if (module_exists ( "v4l2" ))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment