Try out close_input instead of free_context
parent
7748612391
commit
cecb8f65b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue