Skip to content
Snippets Groups Projects
Commit ebb00d83 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

SinkClient: don't resize to 0 when changing size

Change-Id: Ib5c1fd00793fa75312ec6c573805a3746fd29a22
parent e8b9309c
Branches
No related tags found
No related merge requests found
......@@ -365,7 +365,6 @@ SinkClient::update(Observable<std::shared_ptr<MediaFrame>>* /*obs*/,
av_frame_apply_cropping(outFrame.pointer(), AV_FRAME_CROP_UNALIGNED);
}
if (outFrame.height() != height_ || outFrame.width() != width_) {
setFrameSize(0, 0);
setFrameSize(outFrame.width(), outFrame.height());
return;
}
......@@ -427,7 +426,6 @@ SinkClient::update(Observable<std::shared_ptr<MediaFrame>>* /*obs*/,
if (frame->height() != height_ || frame->width() != width_) {
lock.unlock();
setFrameSize(0, 0);
setFrameSize(frame->width(), frame->height());
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment