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:
parent
92def839d0
commit
fed7060270
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user