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
58e76b57
Commit
58e76b57
authored
Jan 16, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CrystalHD: look for the dll in common places
parent
7d6db3ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
modules/codec/crystalhd.c
modules/codec/crystalhd.c
+16
-3
No files found.
modules/codec/crystalhd.c
View file @
58e76b57
...
...
@@ -166,12 +166,25 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys
->
p_sps_pps_buf
=
NULL
;
#ifdef USE_DL_OPENING
p_sys
->
p_bcm_dll
=
LoadLibrary
(
"bcmDIL.dll"
);
# define DLL_NAME "bcmDIL.dll"
# define PATHS_NB 3
static
const
char
*
psz_paths
[
PATHS_NB
]
=
{
DLL_NAME
,
"C:
\\
Program Files
\\
Broadcom
\\
Broadcom CrystalHD Decoder
\\
"
DLL_NAME
,
"C:
\\
Program Files (x86)
\\
Broadcom
\\
Broadcom CrystalHD Decoder
\\
"
DLL_NAME
,
};
for
(
int
i
=
0
;
i
<
PATHS_NB
;
i
++
)
{
HINSTANCE
p_bcm_dll
=
LoadLibrary
(
psz_paths
[
i
]
);
if
(
p_bcm_dll
)
{
p_sys
->
p_bcm_dll
=
p_bcm_dll
;
break
;
}
}
if
(
!
p_sys
->
p_bcm_dll
)
{
#ifdef DEBUG_CRYSTALHD
msg_Dbg
(
p_dec
,
"Couldn't load the CrystalHD dll"
);
#endif
return
VLC_EGENERIC
;
}
...
...
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