diff --git a/src/video/videosurface.cpp b/src/video/videosurface.cpp index 09263d20a..f0b2a97c3 100644 --- a/src/video/videosurface.cpp +++ b/src/video/videosurface.cpp @@ -134,9 +134,9 @@ void VideoSurface::unsubscribe() emit ratioChanged(); emit boundaryChanged(); - source->unsubscribe(); disconnect(source, &VideoSource::frameAvailable, this, &VideoSurface::onNewFrameAvailable); disconnect(source, &VideoSource::sourceStopped, this, &VideoSurface::onSourceStopped); + source->unsubscribe(); } void VideoSurface::onNewFrameAvailable(const std::shared_ptr& newFrame)