Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2cf88f70
Commit
2cf88f70
authored
Sep 13, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DMO: improve debug
parent
fb6b3248
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
modules/codec/dmo/dmo.c
modules/codec/dmo/dmo.c
+11
-9
No files found.
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