mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
SinkClient: don't resize to 0 when changing size
Change-Id: Ib5c1fd00793fa75312ec6c573805a3746fd29a22
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user