Try out close_input instead of free_context

pull/3506/head
Isaac Connor 2022-06-08 23:27:51 -04:00
parent 7748612391
commit cecb8f65b7
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ Camera::Camera(
Camera::~Camera() {
if ( mFormatContext ) {
// Should also free streams
avformat_free_context(mFormatContext);
Debug(1, "Freeing mFormatContext");
//avformat_free_context(mFormatContext);
avformat_close_input(&mFormatContext);
}
if ( mSecondFormatContext ) {
// Should also free streams