summaryrefslogtreecommitdiff
path: root/v4l2-apps/util/qv4l2/qv4l2.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-07-01 17:31:48 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2006-07-01 17:31:48 +0200
commit6c65b97fa5448a31004227926f04f7f13bf14b88 (patch)
treec6b2f26f4baddae59e6f5cee73336506da6e9327 /v4l2-apps/util/qv4l2/qv4l2.cpp
parent7e6d5559eb8f8af6ecb2fa9aae099bfe9f4779c3 (diff)
downloadmediapointer-dvb-s2-6c65b97fa5448a31004227926f04f7f13bf14b88.tar.gz
mediapointer-dvb-s2-6c65b97fa5448a31004227926f04f7f13bf14b88.tar.bz2
Fix qv4l2.cpp to work with v4l2.h.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/util/qv4l2/qv4l2.cpp')
-rw-r--r--v4l2-apps/util/qv4l2/qv4l2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/v4l2-apps/util/qv4l2/qv4l2.cpp b/v4l2-apps/util/qv4l2/qv4l2.cpp
index 18572e699..1a6ef6a47 100644
--- a/v4l2-apps/util/qv4l2/qv4l2.cpp
+++ b/v4l2-apps/util/qv4l2/qv4l2.cpp
@@ -246,8 +246,8 @@ void ApplicationWindow::addGeneralTab()
QLabel *label = new QLabel("Frequency Tables", grid);
label->setAlignment(Qt::AlignRight);
freqTable = new QComboBox(grid);
- for (int i = 0; chanlists[i].name; i++) {
- freqTable->insertItem(chanlists[i].name);
+ for (int i = 0; v4l2_channel_lists[i].name; i++) {
+ freqTable->insertItem(v4l2_channel_lists[i].name);
}
connect(freqTable, SIGNAL(activated(int)), SLOT(freqTableChanged(int)));
@@ -920,7 +920,7 @@ void ApplicationWindow::freqTableChanged(int)
void ApplicationWindow::freqChannelChanged(int idx)
{
- freq->setValue((int)(chanlists[freqTable->currentItem()].list[idx].freq / 62.5));
+ freq->setValue((int)(v4l2_channel_lists[freqTable->currentItem()].list[idx].freq / 62.5));
}
void ApplicationWindow::freqChanged(int val)
@@ -1013,8 +1013,8 @@ void ApplicationWindow::updateFreqChannel()
{
freqChannel->clear();
int tbl = freqTable->currentItem();
- struct CHANLIST *list = chanlists[tbl].list;
- for (int i = 0; i < chanlists[tbl].count; i++)
+ const struct v4l2_channel_list *list = v4l2_channel_lists[tbl].list;
+ for (unsigned i = 0; i < v4l2_channel_lists[tbl].count; i++)
freqChannel->insertItem(list[i].name);
}