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 529860 - ximagesink aspect-ratio not handled properly
ximagesink aspect-ratio not handled properly
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.18
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-25 10:32 UTC by Etienne Barbier
Modified: 2011-08-11 12:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Etienne Barbier 2008-04-25 10:32:08 UTC
Please describe the problem:
When linked to videoscale, modifying the keep-aspect-ratio property of ximagesink have an effect only once.
If you start a pipeline with the keep-aspect-ratio set once for all, it will always work fine. However, if you modify this property when playing, it will not work anymore.


Steps to reproduce:
1. start a pipeline with videoscale linked to ximagesink, keep-aspect-ratio=true
2. when playing, set keep-aspect-ratio to false, the video is enlarged to the window size
3. set keep-aspect-ratio to true


Actual results:
The video cannot be resized, the ratio cannot be preserved anymore.

Expected results:
The video should be resized to keep the aspect ratio as requested

Does this happen every time?
Yes

Other information:
Looking to the code, its seems that after the size has been negociated with the videoscale element, the src size equals the dst size(keep-aspect-ratio=false). Hence gst_video_sink_center_rect always gives the same result whatever the keep-aspect-ratio value.
Comment 1 Sebastian Dröge (slomo) 2011-05-19 07:22:09 UTC
Is this still a problem with the latest releases? If it is, could you attach a testcase to this bug to reproduce it?
Comment 2 Fabio Durán Verdugo 2011-06-29 04:06:29 UTC
Etienne: please, can you reply the comment 1 ? thank
Comment 3 Akhil Laddha 2011-08-11 12:52:08 UTC
Please feel free to reopen this bug if the problem still occurs with a newer version of GStreamer Core 0.10.35, Base Plugins 0.10.35, Good Plugins 0.10.30 stable release, tia.