Browse Source

lavc/videotoolbox: CFRelease() session

"When you are done with a decompression session you created, call
VTDecompressionSessionInvalidate to tear it down and then CFRelease to
release your object reference."
tags/n3.1
Clément Bœsch 9 years ago
parent
commit
6fd58eba1c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/videotoolbox.c

+ 3
- 1
libavcodec/videotoolbox.c View File

@@ -628,8 +628,10 @@ static void videotoolbox_default_free(AVCodecContext *avctx)
if (videotoolbox->cm_fmt_desc)
CFRelease(videotoolbox->cm_fmt_desc);

if (videotoolbox->session)
if (videotoolbox->session) {
VTDecompressionSessionInvalidate(videotoolbox->session);
CFRelease(videotoolbox->session);
}
}
}



Loading…
Cancel
Save