]> git.sesse.net Git - bmusb/commitdiff
Fix a frame leak (leading to freeze) when getting an unknown resolution.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 May 2017 20:10:03 +0000 (22:10 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 May 2017 20:10:03 +0000 (22:10 +0200)
bmusb.cpp

index e9f89e251452ed3bccf88b0dd7f5a2697a8b8d34..775c88dc288e780a2835ed38851de857b8b80b63 100644 (file)
--- a/bmusb.cpp
+++ b/bmusb.cpp
@@ -413,6 +413,7 @@ void BMUSBCapture::dequeue_thread_func()
                                               video_frame.frame, HEADER_SIZE, video_format,
                                               audio_frame.frame, AUDIO_HEADER_SIZE, audio_format);
                        } else {
+                               video_frame_allocator->release_frame(video_frame.frame);
                                audio_format.sample_rate = last_sample_rate;
                                frame_callback(video_timecode,
                                               FrameAllocator::Frame(), 0, video_format,