Commit 6ee39ead authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

activex: add option to set video scale factor

Similar to libvlc_video_set_scale
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 8d974bf0
......@@ -513,6 +513,11 @@ library AXVLC
[propput, helpstring("Sets video aspect ratio.")]
HRESULT aspectRatio([in] BSTR aspect);
[propget, helpstring("Returns video scale.")]
HRESULT scale([out, retval] float* aspect);
[propput, helpstring("Sets video scale.")]
HRESULT scale([in] float aspect);
[propget, helpstring("Returns video subtitle used.")]
HRESULT subtitle([out, retval] long* spu);
[propput, helpstring("Sets video subtitle to use.")]
......@@ -1109,6 +1109,21 @@ STDMETHODIMP VLCVideo::put_aspectRatio(BSTR aspect)
return S_OK;
STDMETHODIMP VLCVideo::get_scale(float* scale)
if( NULL == scale )
return E_POINTER;
*scale = _plug->get_player().get_mp().scale();
return S_OK;
STDMETHODIMP VLCVideo::put_scale(float scale)
_plug->get_player().get_mp().setScale( scale );
return S_OK;
STDMETHODIMP VLCVideo::get_subtitle(long* spu)
if( NULL == spu )
......@@ -345,6 +345,8 @@ public:
STDMETHODIMP get_height(long*);
STDMETHODIMP get_aspectRatio(BSTR*);
STDMETHODIMP put_aspectRatio(BSTR);
STDMETHODIMP get_scale(float*);
STDMETHODIMP put_scale(float);
STDMETHODIMP get_subtitle(long*);
STDMETHODIMP put_subtitle(long);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment