Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
2cf88f70
Commit
2cf88f70
authored
Sep 13, 2012
by
Jean-Baptiste Kempf
Browse files
DMO: improve debug
parent
fb6b3248
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/dmo/dmo.c
View file @
2cf88f70
...
...
@@ -51,7 +51,9 @@
#include <vlc_codecs.h>
#include "dmo.h"
//#define DMO_DEBUG 1
#ifndef NDEBUG
# define DMO_DEBUG 1
#endif
#ifdef LOADER
/* Not Needed */
...
...
@@ -579,19 +581,19 @@ static int DecOpen( decoder_t *p_dec )
while
(
!
p_dmo
->
vt
->
GetOutputType
(
p_dmo
,
0
,
i
++
,
&
mt
)
)
{
msg_Dbg
(
p_dec
,
"available output chroma: %4.4s"
,
(
char
*
)
&
mt
.
subtype
.
Data1
);
msg_Dbg
(
p_dec
,
"available output chroma: %4.4s"
,
(
char
*
)
&
mt
.
subtype
.
Data1
);
DMOFreeMediaType
(
&
mt
);
}
}
#endif
if
(
p_dmo
->
vt
->
SetOutputType
(
p_dmo
,
0
,
&
dmo_output_type
,
0
)
)
unsigned
i_err
=
p_dmo
->
vt
->
SetOutputType
(
p_dmo
,
0
,
&
dmo_output_type
,
0
);
if
(
i_err
)
{
msg_Err
(
p_dec
,
"can't set DMO output type
"
);
msg_Err
(
p_dec
,
"can't set DMO output type
for decoder: 0x%x"
,
i_err
);
goto
error
;
}
msg_Dbg
(
p_dec
,
"DMO output type set"
);
msg_Dbg
(
p_dec
,
"DMO output type set
for decoder
"
);
/* Allocate the memory needed to store the decoder's structure */
p_sys
->
hmsdmo_dll
=
hmsdmo_dll
;
...
...
@@ -1270,11 +1272,11 @@ static int EncoderSetVideoType( encoder_t *p_enc, IMediaObject *p_dmo )
DMOFreeMediaType
(
&
dmo_type
);
if
(
i_err
)
{
msg_Err
(
p_enc
,
"can't set DMO output type
: %i
"
,
i_err
);
msg_Err
(
p_enc
,
"can't set DMO output type
for encoder: 0x%x
"
,
i_err
);
return
VLC_EGENERIC
;
}
msg_Dbg
(
p_enc
,
"successfully set output type"
);
msg_Dbg
(
p_enc
,
"successfully set output type
for encoder
"
);
return
VLC_SUCCESS
;
}
...
...
@@ -1400,7 +1402,7 @@ static int EncoderSetAudioType( encoder_t *p_enc, IMediaObject *p_dmo )
DMOFreeMediaType
(
&
dmo_type
);
if
(
i_err
)
{
msg_Err
(
p_enc
,
"can't set DMO input type: %x"
,
i_err
);
msg_Err
(
p_enc
,
"can't set DMO input type:
0x
%x"
,
i_err
);
return
VLC_EGENERIC
;
}
msg_Dbg
(
p_enc
,
"successfully set input type"
);
...
...
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