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
b80918ce
Commit
b80918ce
authored
Dec 08, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- activex: a few fixes for VB6 and misc cleanup
parent
c3501ebe
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
31 deletions
+23
-31
activex/axvlc.idl
activex/axvlc.idl
+1
-1
activex/axvlc.tlb
activex/axvlc.tlb
+0
-0
activex/axvlc_idl.c
activex/axvlc_idl.c
+1
-1
activex/axvlc_idl.h
activex/axvlc_idl.h
+1
-1
activex/plugin.cpp
activex/plugin.cpp
+0
-20
activex/plugin.h
activex/plugin.h
+0
-3
activex/vlccontrol.cpp
activex/vlccontrol.cpp
+19
-4
activex/vlccontrol2.cpp
activex/vlccontrol2.cpp
+1
-1
No files found.
activex/axvlc.idl
View file @
b80918ce
...
...
@@ -28,7 +28,7 @@ import "oaidl.idl";
[
uuid
(
DF2BBE39
-
40
A8
-
433b
-
A279
-
073
F48DA94B6
),
version
(
1.0
),
helpstring
(
"VideoLAN VLC ActiveX Plugin"
)
,
helpstring
(
"VideoLAN VLC ActiveX Plugin"
)
]
library
AXVLC
{
...
...
activex/axvlc.tlb
View file @
b80918ce
No preview for this file type
activex/axvlc_idl.c
View file @
b80918ce
...
...
@@ -6,7 +6,7 @@
/* File created by MIDL compiler version 6.00.0361 */
/* at
Mon Nov 27 17:47:2
6 2006
/* at
Fri Dec 08 20:17:1
6 2006
*/
/* Compiler settings for axvlc.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
...
...
activex/axvlc_idl.h
View file @
b80918ce
...
...
@@ -4,7 +4,7 @@
/* File created by MIDL compiler version 6.00.0361 */
/* at
Mon Nov 27 17:47:2
6 2006
/* at
Fri Dec 08 20:17:1
6 2006
*/
/* Compiler settings for axvlc.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
...
...
activex/plugin.cpp
View file @
b80918ce
...
...
@@ -947,26 +947,6 @@ void VLCPlugin::setVolume(int volume)
}
};
void
VLCPlugin
::
setTime
(
int
seconds
)
{
if
(
seconds
<
0
)
seconds
=
0
;
if
(
seconds
!=
_i_time
)
{
setStartTime
(
_i_time
);
if
(
isRunning
()
)
{
libvlc_input_t
*
p_input
=
libvlc_playlist_get_input
(
_p_libvlc
,
NULL
);
if
(
NULL
!=
p_input
)
{
libvlc_input_set_time
(
p_input
,
_i_time
,
NULL
);
libvlc_input_free
(
p_input
);
}
}
}
};
void
VLCPlugin
::
setFocus
(
BOOL
fFocus
)
{
if
(
fFocus
)
...
...
activex/plugin.h
View file @
b80918ce
...
...
@@ -127,9 +127,6 @@ public:
};
inline
int
getStartTime
(
void
)
{
return
_i_time
;
};
void
setTime
(
int
time
);
int
getTime
(
void
)
{
return
_i_time
;
};
void
setBaseURL
(
BSTR
url
)
{
SysFreeString
(
_bstr_baseurl
);
...
...
activex/vlccontrol.cpp
View file @
b80918ce
...
...
@@ -228,16 +228,31 @@ STDMETHODIMP VLCControl::get_Time(int *seconds)
}
}
else
*
seconds
=
_p_instance
->
getTime
();
*
seconds
=
_p_instance
->
get
Start
Time
();
return
result
;
};
STDMETHODIMP
VLCControl
::
put_Time
(
int
seconds
)
{
_p_instance
->
setTime
(
seconds
);
if
(
seconds
<
0
)
seconds
=
0
;
return
NOERROR
;
HRESULT
result
=
NOERROR
;
if
(
_p_instance
->
isRunning
()
)
{
int
i_vlc
;
result
=
_p_instance
->
getVLCObject
(
&
i_vlc
);
if
(
SUCCEEDED
(
result
)
)
{
VLC_TimeSet
(
i_vlc
,
seconds
,
VLC_FALSE
);
}
}
else
if
(
seconds
!=
_p_instance
->
getStartTime
()
)
{
_p_instance
->
setStartTime
(
seconds
);
}
return
result
;
};
STDMETHODIMP
VLCControl
::
shuttle
(
int
seconds
)
...
...
@@ -845,7 +860,7 @@ STDMETHODIMP VLCControl::get_VersionInfo(BSTR *version)
const
char
*
versionStr
=
VLC_Version
();
if
(
NULL
!=
versionStr
)
{
*
version
=
BSTRFromCStr
(
_p_instance
->
getCodePage
()
,
versionStr
);
*
version
=
BSTRFromCStr
(
CP_UTF8
,
versionStr
);
return
NULL
==
*
version
?
E_OUTOFMEMORY
:
NOERROR
;
}
*
version
=
NULL
;
...
...
activex/vlccontrol2.cpp
View file @
b80918ce
...
...
@@ -2244,7 +2244,7 @@ STDMETHODIMP VLCControl2::get_VersionInfo(BSTR *version)
const
char
*
versionStr
=
VLC_Version
();
if
(
NULL
!=
versionStr
)
{
*
version
=
BSTRFromCStr
(
_p_instance
->
getCodePage
()
,
versionStr
);
*
version
=
BSTRFromCStr
(
CP_UTF8
,
versionStr
);
return
NULL
==
*
version
?
E_OUTOFMEMORY
:
NOERROR
;
}
...
...
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