[vlc-devel] [PATCH] vmem: Aspect ratio support

Aleksey Lezhoev lezhoev at gmail.com
Fri Oct 16 11:05:54 CEST 2015

It does not change source SAR, it asynchronously detects SAR from loaded video track. SAR is not AR that user sets, It’s AR of pixel in video frame. I don’t know why VLC does it asynchronously. Firstly i tried to get SAR from tracks list( libvlc_media_track_t ) but it contains initial value( zero ) that changes with actual value after some time. To determine that time I tried all libvlc events but it didn’t help. Using Control call in vout is the best working solution that i found.

> 16 окт. 2015 г., в 11:37, Rémi Denis-Courmont <remi at remlab.net> написал(а):
> Le 2015-10-16 11:21, Aleksey Lezhoev a écrit :
>> Yes it does, look at other vout modules( gl.c for example ), they has
>> VOUT_DISPLAY_CHANGE_SOURCE_ASPECT handler to recalculate picture
>> dimensions. vmem has not own painter, it doesn’t know about dimensions
>> and it must send SAR to painter for recalculations.
> You're not answering the question.
> Except for the application overriding the A/R, I don't see why VLC would asynchronously change the source SAR.
> -- 
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list