Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(corevideosource): Partial revert of ef641ce
Browse files Browse the repository at this point in the history
Fixes crash, during video call with "None" video device.
Fixes #3527.
  • Loading branch information
Diadlo committed Jul 23, 2016
1 parent ff92a55 commit b1adef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/corevideosource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe)
av_frame_free(&avframe);
return;
}
avframe->opaque = buf;

uint8_t** data = avframe->data;
int* linesize = avframe->linesize;
Expand All @@ -81,7 +82,6 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe)

vframe = std::make_shared<VideoFrame>(avframe);

av_free(buf);
emit frameAvailable(vframe);
}

Expand Down

0 comments on commit b1adef2

Please sign in to comment.