From f37788d57a0a83533922c82ad9aaabbda8eb08a7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 12 May 2017 22:10:03 +0200 Subject: [PATCH] Fix a frame leak (leading to freeze) when getting an unknown resolution. --- bmusb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/bmusb.cpp b/bmusb.cpp index e9f89e2..775c88d 100644 --- 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, -- 2.39.2