From: Steinar H. Gunderson Date: Fri, 12 May 2017 20:10:03 +0000 (+0200) Subject: Fix a frame leak (leading to freeze) when getting an unknown resolution. X-Git-Tag: 0.7.0~3 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f37788d57a0a83533922c82ad9aaabbda8eb08a7;p=bmusb Fix a frame leak (leading to freeze) when getting an unknown resolution. --- 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,