Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2a267019
Commit
2a267019
authored
May 13, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/dmo/dmo.c: fixed problem with detection of DMOs.
parent
6a4fd20e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.c
+18
-16
No files found.
modules/codec/dmo/dmo.c
View file @
2a267019
...
@@ -604,31 +604,33 @@ static int LoadDMO( vlc_object_t *p_this, HINSTANCE *p_hmsdmo_dll,
...
@@ -604,31 +604,33 @@ static int LoadDMO( vlc_object_t *p_this, HINSTANCE *p_hmsdmo_dll,
}
}
/* Pickup the first available codec */
/* Pickup the first available codec */
if
(
p_enum_dmo
->
vt
->
Next
(
p_enum_dmo
,
1
,
&
clsid_dmo
,
*
pp_dmo
=
0
;
&
psz_dmo_name
,
&
i_dummy
/* NULL doesn't work */
)
)
while
(
(
S_OK
==
p_enum_dmo
->
vt
->
Next
(
p_enum_dmo
,
1
,
&
clsid_dmo
,
{
&
psz_dmo_name
,
&
i_dummy
/* NULL doesn't work */
)
)
)
FreeLibrary
(
*
p_hmsdmo_dll
);
return
VLC_EGENERIC
;
}
p_enum_dmo
->
vt
->
Release
(
(
IUnknown
*
)
p_enum_dmo
);
#if 1
{
{
char
psz_temp
[
MAX_PATH
];
char
psz_temp
[
MAX_PATH
];
wcstombs
(
psz_temp
,
psz_dmo_name
,
MAX_PATH
);
wcstombs
(
psz_temp
,
psz_dmo_name
,
MAX_PATH
);
msg_Dbg
(
p_this
,
"found DMO: %s"
,
psz_temp
);
msg_Dbg
(
p_this
,
"found DMO: %s"
,
psz_temp
);
}
#endif
CoTaskMemFree
(
psz_dmo_name
);
CoTaskMemFree
(
psz_dmo_name
);
/* Create DMO */
/* Create DMO */
if
(
CoCreateInstance
(
&
clsid_dmo
,
NULL
,
CLSCTX_INPROC
,
if
(
CoCreateInstance
(
&
clsid_dmo
,
NULL
,
CLSCTX_INPROC
,
&
IID_IMediaObject
,
(
void
**
)
pp_dmo
)
)
&
IID_IMediaObject
,
(
void
**
)
pp_dmo
)
)
{
{
msg_Err
(
p_this
,
"can't create DMO"
);
msg_Warn
(
p_this
,
"can't create DMO: %s"
,
psz_temp
);
*
pp_dmo
=
0
;
}
else
break
;
}
p_enum_dmo
->
vt
->
Release
(
(
IUnknown
*
)
p_enum_dmo
);
if
(
!*
pp_dmo
)
{
FreeLibrary
(
*
p_hmsdmo_dll
);
FreeLibrary
(
*
p_hmsdmo_dll
);
return
VLC_EGENERIC
;
/* return VLC_EGENERIC; */
/* Try loading the dll directly */
goto
loader
;
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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