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
afdfd513
Commit
afdfd513
authored
May 22, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./plugins/mad/mad_adec.c, ./plugins/mad/mad_libmad.c: use intf_WarnMsg for
debug messages instead of intf_ErrMsg.
parent
630692cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
plugins/mad/mad_adec.c
plugins/mad/mad_adec.c
+7
-7
plugins/mad/mad_libmad.c
plugins/mad/mad_libmad.c
+2
-2
No files found.
plugins/mad/mad_adec.c
View file @
afdfd513
...
@@ -106,7 +106,7 @@ static int decoder_Run ( decoder_config_t * p_config )
...
@@ -106,7 +106,7 @@ static int decoder_Run ( decoder_config_t * p_config )
{
{
mad_adec_thread_t
*
p_mad_adec
;
mad_adec_thread_t
*
p_mad_adec
;
intf_
ErrMsg
(
"mad_adec debug: mad_adec thread launched, initializing"
);
intf_
WarnMsg
(
4
,
"mad_adec debug: mad_adec thread launched, initializing"
);
/* Allocate the memory needed to store the thread's structure */
/* Allocate the memory needed to store the thread's structure */
p_mad_adec
=
(
mad_adec_thread_t
*
)
malloc
(
sizeof
(
mad_adec_thread_t
));
p_mad_adec
=
(
mad_adec_thread_t
*
)
malloc
(
sizeof
(
mad_adec_thread_t
));
...
@@ -175,17 +175,17 @@ static int InitThread( mad_adec_thread_t * p_mad_adec )
...
@@ -175,17 +175,17 @@ static int InitThread( mad_adec_thread_t * p_mad_adec )
if
(
strncmp
(
psz_downscale
,
"fast"
,
4
)
==
0
)
if
(
strncmp
(
psz_downscale
,
"fast"
,
4
)
==
0
)
{
{
p_mad_adec
->
audio_scaling
=
FAST_SCALING
;
p_mad_adec
->
audio_scaling
=
FAST_SCALING
;
intf_
ErrMsg
(
"mad_adec debug: downscale fast selected"
);
intf_
WarnMsg
(
4
,
"mad_adec debug: downscale fast selected"
);
}
}
else
if
(
strncmp
(
psz_downscale
,
"mpg321"
,
7
)
==
0
)
else
if
(
strncmp
(
psz_downscale
,
"mpg321"
,
7
)
==
0
)
{
{
p_mad_adec
->
audio_scaling
=
MPG321_SCALING
;
p_mad_adec
->
audio_scaling
=
MPG321_SCALING
;
intf_
ErrMsg
(
"mad_adec debug: downscale mpg321 selected"
);
intf_
WarnMsg
(
4
,
"mad_adec debug: downscale mpg321 selected"
);
}
}
else
else
{
{
p_mad_adec
->
audio_scaling
=
FAST_SCALING
;
p_mad_adec
->
audio_scaling
=
FAST_SCALING
;
intf_
ErrMsg
(
"mad_adec debug: downscale default fast selected"
);
intf_
WarnMsg
(
4
,
"mad_adec debug: downscale default fast selected"
);
}
}
if
(
psz_downscale
)
free
(
psz_downscale
);
if
(
psz_downscale
)
free
(
psz_downscale
);
...
@@ -234,7 +234,7 @@ static int InitThread( mad_adec_thread_t * p_mad_adec )
...
@@ -234,7 +234,7 @@ static int InitThread( mad_adec_thread_t * p_mad_adec )
vlc_mutex_unlock
(
&
p_fifo
->
data_lock
);
vlc_mutex_unlock
(
&
p_fifo
->
data_lock
);
p_mad_adec
->
p_data
=
p_fifo
->
p_first
->
p_first
;
p_mad_adec
->
p_data
=
p_fifo
->
p_first
->
p_first
;
intf_
ErrMsg
(
"mad_adec debug: mad decoder thread %p initialized"
,
p_mad_adec
);
intf_
WarnMsg
(
4
,
"mad_adec debug: mad decoder thread %p initialized"
,
p_mad_adec
);
return
(
0
);
return
(
0
);
}
}
...
@@ -244,7 +244,7 @@ static int InitThread( mad_adec_thread_t * p_mad_adec )
...
@@ -244,7 +244,7 @@ static int InitThread( mad_adec_thread_t * p_mad_adec )
*****************************************************************************/
*****************************************************************************/
static
void
EndThread
(
mad_adec_thread_t
*
p_mad_adec
)
static
void
EndThread
(
mad_adec_thread_t
*
p_mad_adec
)
{
{
intf_
ErrMsg
(
"mad_adec debug: destroying mad decoder thread %p"
,
p_mad_adec
);
intf_
WarnMsg
(
4
,
"mad_adec debug: destroying mad decoder thread %p"
,
p_mad_adec
);
/* If the audio output fifo was created, we destroy it */
/* If the audio output fifo was created, we destroy it */
if
(
p_mad_adec
->
p_aout_fifo
!=
NULL
)
if
(
p_mad_adec
->
p_aout_fifo
!=
NULL
)
...
@@ -264,6 +264,6 @@ static void EndThread (mad_adec_thread_t * p_mad_adec)
...
@@ -264,6 +264,6 @@ static void EndThread (mad_adec_thread_t * p_mad_adec)
free
(
p_mad_adec
->
libmad_decoder
);
free
(
p_mad_adec
->
libmad_decoder
);
free
(
p_mad_adec
);
free
(
p_mad_adec
);
intf_
ErrMsg
(
"mad_adec debug: mad decoder thread %p destroyed"
,
p_mad_adec
);
intf_
WarnMsg
(
4
,
"mad_adec debug: mad decoder thread %p destroyed"
,
p_mad_adec
);
}
}
plugins/mad/mad_libmad.c
View file @
afdfd513
...
@@ -302,7 +302,7 @@ enum mad_flow libmad_output(void *data, struct mad_header const *p_libmad_header
...
@@ -302,7 +302,7 @@ enum mad_flow libmad_output(void *data, struct mad_header const *p_libmad_header
return
(
-
1
);
return
(
-
1
);
}
}
intf_
ErrMsg
(
"mad_adec debug: in libmad_output aout fifo created"
);
intf_
WarnMsg
(
4
,
"mad_adec debug: in libmad_output aout fifo created"
);
}
}
if
(
p_mad_adec
->
p_aout_fifo
->
i_rate
!=
p_libmad_pcm
->
samplerate
)
if
(
p_mad_adec
->
p_aout_fifo
->
i_rate
!=
p_libmad_pcm
->
samplerate
)
...
@@ -375,7 +375,7 @@ enum mad_flow libmad_output(void *data, struct mad_header const *p_libmad_header
...
@@ -375,7 +375,7 @@ enum mad_flow libmad_output(void *data, struct mad_header const *p_libmad_header
/* DEBUG */
/* DEBUG */
/*
/*
if (p_libmad_pcm->channels == 1) {
if (p_libmad_pcm->channels == 1) {
intf_
ErrMsg(
"mad debug: libmad_output channels [%d]", p_libmad_pcm->channels);
intf_
WarnMsg( 4,
"mad debug: libmad_output channels [%d]", p_libmad_pcm->channels);
}
}
*/
*/
...
...
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