mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
Comment
This commit is contained in:
parent
dea0bd1f0b
commit
67461d3156
1 changed files with 1 additions and 2 deletions
|
@ -65,8 +65,7 @@ public class GStreamerSurfaceView extends SurfaceView {
|
|||
height = media_height;
|
||||
}
|
||||
|
||||
// Preserve aspect ratio if we are allowed freedom in both axes
|
||||
// FIXME: Implement the case where only one axis is free
|
||||
// Finally, calculate best size when both axis are free
|
||||
if (hmode == View.MeasureSpec.AT_MOST && wmode == View.MeasureSpec.AT_MOST) {
|
||||
int correct_height = width * media_height / media_width;
|
||||
int correct_width = height * media_width / media_height;
|
||||
|
|
Loading…
Reference in a new issue