mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix video starting with bad resolution
The netcamview has no business trying to open the video source, especially in the wrong video mode
This commit is contained in:
parent
37075dbfb5
commit
104095c6be
|
@ -88,7 +88,6 @@ NetCamView::NetCamView(int friendId, QWidget* parent)
|
||||||
videoMode.height = videoSize.height();
|
videoMode.height = videoSize.height();
|
||||||
qDebug() << "SIZER" << videoSize;
|
qDebug() << "SIZER" << videoSize;
|
||||||
videoMode.FPS = Settings::getInstance().getCamVideoFPS();
|
videoMode.FPS = Settings::getInstance().getCamVideoFPS();
|
||||||
CameraSource::getInstance().open(Settings::getInstance().getVideoDev(), videoMode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetCamView::show(VideoSource *source, const QString &title)
|
void NetCamView::show(VideoSource *source, const QString &title)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user