mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-27 09:33:56 +08:00
ui: stop vipc thread before the DriverViewWindow is hidden (#26738)
This commit is contained in:
@@ -22,6 +22,7 @@ DriverViewWindow::DriverViewWindow(QWidget* parent) : QWidget(parent) {
|
||||
}
|
||||
|
||||
void DriverViewWindow::mouseReleaseEvent(QMouseEvent* e) {
|
||||
cameraView->stopVipcThread();
|
||||
emit done();
|
||||
}
|
||||
|
||||
@@ -35,7 +36,6 @@ void DriverViewScene::showEvent(QShowEvent* event) {
|
||||
}
|
||||
|
||||
void DriverViewScene::hideEvent(QHideEvent* event) {
|
||||
// TODO: stop vipc thread ?
|
||||
params.putBool("IsDriverViewEnabled", false);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ public:
|
||||
void setFrameId(int frame_id) { draw_frame_id = frame_id; }
|
||||
void setStreamType(VisionStreamType type) { requested_stream_type = type; }
|
||||
VisionStreamType getStreamType() { return active_stream_type; }
|
||||
void stopVipcThread();
|
||||
|
||||
signals:
|
||||
void clicked();
|
||||
@@ -51,7 +52,6 @@ protected:
|
||||
void updateCalibration(const mat3 &calib);
|
||||
void vipcThread();
|
||||
void clearFrames();
|
||||
void stopVipcThread();
|
||||
|
||||
bool zoomed_view;
|
||||
GLuint frame_vao, frame_vbo, frame_ibo;
|
||||
|
||||
Reference in New Issue
Block a user