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