HRESULT height([out, retval] long* height);\r
\r
[propget, helpstring("Returns video aspect ratio.")]\r
- HRESULT aspectRatio([out, retval] BSTR *aspect);\r
+ HRESULT aspectRatio([out, retval] BSTR aspect);\r
[propput, helpstring("Sets video aspect ratio.")]\r
HRESULT aspectRatio([in] BSTR aspect);\r
\r
long* height) = 0;
virtual HRESULT STDMETHODCALLTYPE get_aspectRatio(
- BSTR* aspect) = 0;
+ BSTR aspect) = 0;
virtual HRESULT STDMETHODCALLTYPE put_aspectRatio(
BSTR aspect) = 0;
HRESULT (STDMETHODCALLTYPE *get_aspectRatio)(
IVLCVideo* This,
- BSTR* aspect);
+ BSTR aspect);
HRESULT (STDMETHODCALLTYPE *put_aspectRatio)(
IVLCVideo* This,
DWORD* pdwStubPhase);
HRESULT CALLBACK IVLCVideo_get_aspectRatio_Proxy(
IVLCVideo* This,
- BSTR* aspect);
+ BSTR aspect);
void __RPC_STUB IVLCVideo_get_aspectRatio_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
return hr;
};
-STDMETHODIMP VLCVideo::get_aspectRatio(BSTR *aspect)
+STDMETHODIMP VLCVideo::get_aspectRatio(BSTR aspect)
{
- if( NULL == *aspect )
+ if( NULL == aspect )
return E_POINTER;
libvlc_instance_t* p_libvlc;
{
char *psz_aspect = libvlc_video_get_aspect_ratio(p_input, &ex);
- if( !psz_aspect )
+ libvlc_input_free(p_input);
+ if( NULL == psz_aspect )
return E_OUTOFMEMORY;
if( ! libvlc_exception_raised(&ex) )
{
- *aspect = SysAllocStringByteLen(psz_aspect, strlen(psz_aspect));
+ aspect = SysAllocStringByteLen(psz_aspect, strlen(psz_aspect));
free( psz_aspect );
psz_aspect = NULL;
- libvlc_input_free(p_input);
- if( ! libvlc_exception_raised(&ex) )
- {
- return NOERROR;
- }
+ return NOERROR;
}
if( psz_aspect ) free( psz_aspect );
}
STDMETHODIMP put_fullscreen(VARIANT_BOOL);
STDMETHODIMP get_width(long*);
STDMETHODIMP get_height(long*);
- STDMETHODIMP get_aspectRatio(BSTR*);
+ STDMETHODIMP get_aspectRatio(BSTR);
STDMETHODIMP put_aspectRatio(BSTR);
STDMETHODIMP toggleFullscreen();