Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
12d4c992
Commit
12d4c992
authored
Oct 30, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix property get_aspectRatio
parent
8ba3c407
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
14 deletions
+11
-14
activex/axvlc.idl
activex/axvlc.idl
+1
-1
activex/axvlc.tlb
activex/axvlc.tlb
+0
-0
activex/axvlc_idl.h
activex/axvlc_idl.h
+3
-3
activex/vlccontrol2.cpp
activex/vlccontrol2.cpp
+6
-9
activex/vlccontrol2.h
activex/vlccontrol2.h
+1
-1
No files found.
activex/axvlc.idl
View file @
12d4c992
...
...
@@ -307,7 +307,7 @@ library AXVLC
HRESULT
height
(
[
out
,
retval
]
int
*
height
)
;
[
propget
,
helpstring
(
"Returns video aspect ratio."
)
]
HRESULT
aspectRatio
(
[
out
,
retval
]
BSTR
*
aspect
)
;
HRESULT
aspectRatio
(
[
out
,
retval
]
BSTR
aspect
)
;
[
propput
,
helpstring
(
"Sets video aspect ratio."
)
]
HRESULT
aspectRatio
(
[
in
]
BSTR
aspect
)
;
...
...
activex/axvlc.tlb
View file @
12d4c992
No preview for this file type
activex/axvlc_idl.h
View file @
12d4c992
...
...
@@ -1449,7 +1449,7 @@ interface IVLCVideo : public IDispatch
int
*
height
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
get_aspectRatio
(
BSTR
*
aspect
)
=
0
;
BSTR
aspect
)
=
0
;
virtual
HRESULT
STDMETHODCALLTYPE
put_aspectRatio
(
BSTR
aspect
)
=
0
;
...
...
@@ -1523,7 +1523,7 @@ typedef struct IVLCVideoVtbl {
HRESULT
(
STDMETHODCALLTYPE
*
get_aspectRatio
)(
IVLCVideo
*
This
,
BSTR
*
aspect
);
BSTR
aspect
);
HRESULT
(
STDMETHODCALLTYPE
*
put_aspectRatio
)(
IVLCVideo
*
This
,
...
...
@@ -1594,7 +1594,7 @@ void __RPC_STUB IVLCVideo_get_height_Stub(
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
,
...
...
activex/vlccontrol2.cpp
View file @
12d4c992
...
...
@@ -1135,9 +1135,9 @@ STDMETHODIMP VLCVideo::get_height(int* height)
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
;
...
...
@@ -1152,19 +1152,16 @@ STDMETHODIMP VLCVideo::get_aspectRatio(BSTR *aspect)
{
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
);
}
...
...
activex/vlccontrol2.h
View file @
12d4c992
...
...
@@ -222,7 +222,7 @@ public:
STDMETHODIMP
put_fullscreen
(
VARIANT_BOOL
);
STDMETHODIMP
get_width
(
int
*
);
STDMETHODIMP
get_height
(
int
*
);
STDMETHODIMP
get_aspectRatio
(
BSTR
*
);
STDMETHODIMP
get_aspectRatio
(
BSTR
);
STDMETHODIMP
put_aspectRatio
(
BSTR
);
STDMETHODIMP
toggleFullscreen
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment