Skip to content

Commit

Permalink
vo: repaint if roi/orientation changed
Browse files Browse the repository at this point in the history
qml not working
  • Loading branch information
wang-bin committed May 19, 2016
1 parent 145b80c commit 0389e47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/output/video/VideoRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ void VideoRenderer::setOutAspectRatio(qreal ratio)
onSetOutAspectRatio(ratio);
Q_EMIT outAspectRatioChanged();
}
updateUi();
}

void VideoRenderer::onSetOutAspectRatio(qreal ratio)
Expand All @@ -200,6 +201,8 @@ void VideoRenderer::setQuality(Quality q)
d.quality = q;
if (!onSetQuality(q)) {
d.quality = old;
} else {
updateUi();
}
}

Expand Down Expand Up @@ -303,6 +306,7 @@ void VideoRenderer::setOrientation(int value)
Q_EMIT contentRectChanged();
}
onSetOutAspectRatio(outAspectRatio());
updateUi();
}
}

Expand Down Expand Up @@ -350,6 +354,7 @@ void VideoRenderer::setRegionOfInterest(const QRectF &roi)
d.roi = old;
} else {
Q_EMIT regionOfInterestChanged();
updateUi();
}
// TODO: how to fill video? what's out_rect now?
}
Expand Down

0 comments on commit 0389e47

Please sign in to comment.