Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d8f9b79e
Commit
d8f9b79e
authored
Apr 06, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- activex: misc. cleanups
parent
2dad498f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
28 deletions
+32
-28
activex/main.cpp
activex/main.cpp
+1
-1
activex/plugin.cpp
activex/plugin.cpp
+28
-26
activex/vlccontrol2.cpp
activex/vlccontrol2.cpp
+3
-1
No files found.
activex/main.cpp
View file @
d8f9b79e
...
@@ -121,7 +121,7 @@ static inline HKEY keyClose(HKEY hKey)
...
@@ -121,7 +121,7 @@ static inline HKEY keyClose(HKEY hKey)
return
NULL
;
return
NULL
;
};
};
static
HRESULT
UnregisterProgID
(
REFCLSID
rclsid
,
unsigned
int
version
)
static
void
UnregisterProgID
(
REFCLSID
rclsid
,
unsigned
int
version
)
{
{
OLECHAR
szCLSID
[
GUID_STRLEN
];
OLECHAR
szCLSID
[
GUID_STRLEN
];
...
...
activex/plugin.cpp
View file @
d8f9b79e
...
@@ -429,55 +429,55 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
...
@@ -429,55 +429,55 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
char
*
ppsz_argv
[
32
]
=
{
"vlc"
};
char
*
ppsz_argv
[
32
]
=
{
"vlc"
};
int
ppsz_argc
=
1
;
int
ppsz_argc
=
1
;
char
p_progpath
[
MAX_PATH
];
{
TCHAR
w_progpath
[
MAX_PATH
];
DWORD
len
=
GetModuleFileName
(
DllGetModule
(),
w_progpath
,
MAX_PATH
);
if
(
len
>
0
)
{
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
w_progpath
,
len
,
p_progpath
,
sizeof
(
p_progpath
)
-
1
,
NULL
,
NULL
);
if
(
len
>
0
)
{
p_progpath
[
len
]
=
'\0'
;
ppsz_argv
[
0
]
=
p_progpath
;
}
}
}
ppsz_argv
[
ppsz_argc
++
]
=
"-vv"
;
HKEY
h_key
;
HKEY
h_key
;
char
p_
data
[
MAX_PATH
];
char
p_
pluginpath
[
MAX_PATH
];
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,
TEXT
(
"Software
\\
VideoLAN
\\
VLC"
),
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,
TEXT
(
"Software
\\
VideoLAN
\\
VLC"
),
0
,
KEY_READ
,
&
h_key
)
==
ERROR_SUCCESS
)
0
,
KEY_READ
,
&
h_key
)
==
ERROR_SUCCESS
)
{
{
DWORD
i_type
,
i_data
=
MAX_PATH
;
DWORD
i_type
,
i_data
=
MAX_PATH
;
TCHAR
w_
data
[
MAX_PATH
];
TCHAR
w_
pluginpath
[
MAX_PATH
];
if
(
RegQueryValueEx
(
h_key
,
TEXT
(
"InstallDir"
),
0
,
&
i_type
,
if
(
RegQueryValueEx
(
h_key
,
TEXT
(
"InstallDir"
),
0
,
&
i_type
,
(
LPBYTE
)
w_
data
,
&
i_data
)
==
ERROR_SUCCESS
)
(
LPBYTE
)
w_
pluginpath
,
&
i_data
)
==
ERROR_SUCCESS
)
{
{
if
(
i_type
==
REG_SZ
)
if
(
i_type
==
REG_SZ
)
{
{
if
(
WideCharToMultiByte
(
CP_UTF8
,
0
,
w_
data
,
-
1
,
p_data
,
if
(
WideCharToMultiByte
(
CP_UTF8
,
0
,
w_
pluginpath
,
-
1
,
p_pluginpath
,
sizeof
(
p_
data
)
-
sizeof
(
"
\\
plugins"
)
+
1
,
NULL
,
NULL
)
)
sizeof
(
p_
pluginpath
)
-
sizeof
(
"
\\
plugins"
)
+
1
,
NULL
,
NULL
)
)
{
{
strcat
(
p_
data
,
"
\\
plugins"
);
strcat
(
p_
pluginpath
,
"
\\
plugins"
);
ppsz_argv
[
ppsz_argc
++
]
=
"--plugin-path"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--plugin-path"
;
ppsz_argv
[
ppsz_argc
++
]
=
p_
data
;
ppsz_argv
[
ppsz_argc
++
]
=
p_
pluginpath
;
}
}
}
}
}
}
RegCloseKey
(
h_key
);
RegCloseKey
(
h_key
);
}
}
char
p_path
[
MAX_PATH
];
{
TCHAR
w_path
[
MAX_PATH
];
DWORD
len
=
GetModuleFileName
(
DllGetModule
(),
w_path
,
MAX_PATH
);
if
(
len
>
0
)
{
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
w_path
,
len
,
p_path
,
sizeof
(
p_path
)
-
1
,
NULL
,
NULL
);
if
(
len
>
0
)
{
p_path
[
len
]
=
'\0'
;
ppsz_argv
[
0
]
=
p_path
;
}
}
}
// make sure plugin isn't affected with VLC single instance mode
// make sure plugin isn't affected with VLC single instance mode
ppsz_argv
[
ppsz_argc
++
]
=
"--no-one-instance"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-one-instance"
;
/* common settings */
/* common settings */
ppsz_argv
[
ppsz_argc
++
]
=
"-vv"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-stats"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-stats"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-media-library"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-media-library"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--intf"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--intf=dummy"
;
ppsz_argv
[
ppsz_argc
++
]
=
"dummy"
;
// loop mode is a configuration option only
// loop mode is a configuration option only
if
(
_b_autoloop
)
if
(
_b_autoloop
)
...
@@ -497,6 +497,8 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
...
@@ -497,6 +497,8 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
ppsz_argv
[
ppsz_argc
++
]
=
"--win9x-cv-method=1"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--win9x-cv-method=1"
;
}
}
DebugBreak
();
_p_libvlc
=
libvlc_new
(
ppsz_argc
,
ppsz_argv
,
NULL
);
_p_libvlc
=
libvlc_new
(
ppsz_argc
,
ppsz_argv
,
NULL
);
if
(
NULL
==
_p_libvlc
)
if
(
NULL
==
_p_libvlc
)
{
{
...
...
activex/vlccontrol2.cpp
View file @
d8f9b79e
...
@@ -628,6 +628,7 @@ STDMETHODIMP VLCInput::get_fps(double* fps)
...
@@ -628,6 +628,7 @@ STDMETHODIMP VLCInput::get_fps(double* fps)
if
(
NULL
==
fps
)
if
(
NULL
==
fps
)
return
E_POINTER
;
return
E_POINTER
;
*
fps
=
0.0
;
libvlc_instance_t
*
p_libvlc
;
libvlc_instance_t
*
p_libvlc
;
HRESULT
hr
=
_p_instance
->
getVLC
(
&
p_libvlc
);
HRESULT
hr
=
_p_instance
->
getVLC
(
&
p_libvlc
);
if
(
SUCCEEDED
(
hr
)
)
if
(
SUCCEEDED
(
hr
)
)
...
@@ -2606,12 +2607,13 @@ STDMETHODIMP VLCControl2::get_VersionInfo(BSTR *version)
...
@@ -2606,12 +2607,13 @@ STDMETHODIMP VLCControl2::get_VersionInfo(BSTR *version)
if
(
NULL
!=
versionStr
)
if
(
NULL
!=
versionStr
)
{
{
*
version
=
BSTRFromCStr
(
CP_UTF8
,
versionStr
);
*
version
=
BSTRFromCStr
(
CP_UTF8
,
versionStr
);
return
NULL
==
*
version
?
E_OUTOFMEMORY
:
NOERROR
;
return
NULL
==
*
version
?
E_OUTOFMEMORY
:
NOERROR
;
}
}
*
version
=
NULL
;
*
version
=
NULL
;
return
E_FAIL
;
return
E_FAIL
;
};
};
STDMETHODIMP
VLCControl2
::
get_Visible
(
VARIANT_BOOL
*
isVisible
)
STDMETHODIMP
VLCControl2
::
get_Visible
(
VARIANT_BOOL
*
isVisible
)
{
{
if
(
NULL
==
isVisible
)
if
(
NULL
==
isVisible
)
...
...
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