Browse Source

fix(corevideosource): Partial revert of ef641ce6d3

Fixes crash, during video call with "None" video device.
Fixes #3527.
pull/3534/head
Diadlo 9 years ago
parent
commit
b1adef2fd0
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 2
      src/video/corevideosource.cpp

2
src/video/corevideosource.cpp

@ -59,6 +59,7 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe) @@ -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;
@ -81,7 +82,6 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe) @@ -81,7 +82,6 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe)
vframe = std::make_shared<VideoFrame>(avframe);
av_free(buf);
emit frameAvailable(vframe);
}

Loading…
Cancel
Save