1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(video): prevent segfault when ending videocall

This commit is contained in:
sudden6 2017-10-22 18:05:32 +02:00
parent 92def839d0
commit fed7060270
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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<VideoFrame>& newFrame)