1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(corevideosource): Partial revert of ef641ce6d3

Fixes crash, during video call with "None" video device.
Fixes #3527.
This commit is contained in:
Diadlo 2016-07-23 03:56:00 +03:00
parent ff92a55950
commit b1adef2fd0
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -59,6 +59,7 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe)
av_frame_free(&avframe); av_frame_free(&avframe);
return; return;
} }
avframe->opaque = buf;
uint8_t** data = avframe->data; uint8_t** data = avframe->data;
int* linesize = avframe->linesize; int* linesize = avframe->linesize;
@ -81,7 +82,6 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe)
vframe = std::make_shared<VideoFrame>(avframe); vframe = std::make_shared<VideoFrame>(avframe);
av_free(buf);
emit frameAvailable(vframe); emit frameAvailable(vframe);
} }