[vlc-devel] [PATCH] Expose aspect ratio to luahttp

Rob rob at hobbyistsoftware.com
Thu Jul 14 11:03:09 CEST 2011


On Wed, 13 Jul 2011 21:36:57 +0100, Rémi Denis-Courmont <remi at remlab.net>  
wrote:

> Le mercredi 13 juillet 2011 23:26:37 akash mehrotra, vous avez écrit :
>> Expose aspect ratio to luahttp
>
> Do we really need to extend LUA for this? Can't we use the generic  
> object and
> variable functions?
>
> There is really no point in using LUA if every single new functions  
> requires
> dedicated native glue code.
>

I have this from some old code I was playing with. Looks like it is what  
you need:

elseif command == "aspect_ratio" then
   local input = vlc.object.input()
   local vout = input and vlc.object.find(input,'vout','child')
   if (vout) then
   	vlc.var.set(vout, "aspect-ratio", val)
   end	
end



More information about the vlc-devel mailing list