After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679169 - Fix aspect frame bugs
Fix aspect frame bugs
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: GStreamer backend
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Maintainer alias for GStreamer component of Totem
Maintainer alias for GStreamer component of Totem
Depends on:
Blocks:
 
 
Reported: 2012-06-29 23:02 UTC by Bastien Nocera
Modified: 2013-03-11 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
P (8.35 KB, patch)
2013-03-08 16:30 UTC, Bastien Nocera
needs-work Details | Review
P (9.10 KB, patch)
2013-03-08 16:33 UTC, Bastien Nocera
needs-work Details | Review

Description Bastien Nocera 2012-06-29 23:02:09 UTC
Most of the bugs in totem-aspect-frame were already solved in MxImage. See mx_image_paint(), calculate_scale() and get_center_coords().

https://github.com/clutter-project/mx/blob/master/mx/mx-image.c

Also note that we should never be rotating the frame (the container) but rather the video itself.

You can debug this more easily by setting the background color of the video widget to one colour, and the frame background to another.
Comment 1 Bastien Nocera 2013-03-08 16:30:41 UTC
Created attachment 238379 [details] [review]
P

Patch from Lionel.
- Resizing the window when rotated 90/270 could make the video disappear from view
- aspect ratio changes are broken, this call in bvw the culprit in handling "video-size":
clutter_actor_set_size (bvw->priv->texture, w, h);
Comment 2 Bastien Nocera 2013-03-08 16:33:20 UTC
Created attachment 238380 [details] [review]
P

With a tiny local patch
Comment 3 Bastien Nocera 2013-03-11 10:41:14 UTC
commit 94a3d2b39b044e2dd68edb7db4f1fe9fccddbb35
Author: Bastien Nocera <hadess@hadess.net>
Date:   Fri Mar 8 17:32:19 2013 +0100

    backend: Simplify angle check
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679169

commit 089909347401c0c29c52ca07992efbf8ba7b4fd7
Author: Lionel Landwerlin <llandwerlin@gmail.com>
Date:   Fri Mar 8 16:03:00 2013 +0000

    backend: Make rotation/crop work together
    
    This fixes problems with the widget not taking all the
    available space when rotated, and the expand being broken
    in rotated mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679169

commit 0db2913d5b021688c00a1575b9ed555d56a4fc13
Author: Bastien Nocera <hadess@hadess.net>
Date:   Fri Mar 8 17:14:04 2013 +0100

    Revert "backend: Don't rotate the frame itself"
    
    This reverts commit b532b4464cea5db46f060c650d78f2300e4c42a6.
    
    The code clashed with Lionel's bug fixes (which also
    includes fixing the same bug this fixed).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679169