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
868ae7e3
Commit
868ae7e3
authored
Jul 04, 2006
by
Sam Hocevar
Browse files
* modules/stream_out/transcode.c: improve error message verbosity.
parent
75a1b08a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/transcode.c
View file @
868ae7e3
...
@@ -1292,7 +1292,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
...
@@ -1292,7 +1292,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
module_Need
(
id
->
p_encoder
,
"encoder"
,
p_sys
->
psz_aenc
,
VLC_TRUE
);
module_Need
(
id
->
p_encoder
,
"encoder"
,
p_sys
->
psz_aenc
,
VLC_TRUE
);
if
(
!
id
->
p_encoder
->
p_module
)
if
(
!
id
->
p_encoder
->
p_module
)
{
{
msg_Err
(
p_stream
,
"cannot find encoder
"
);
msg_Err
(
p_stream
,
"cannot find encoder
(%s)"
,
p_sys
->
psz_aenc
);
module_Unneed
(
id
->
p_decoder
,
id
->
p_decoder
->
p_module
);
module_Unneed
(
id
->
p_decoder
,
id
->
p_decoder
->
p_module
);
id
->
p_decoder
->
p_module
=
0
;
id
->
p_decoder
->
p_module
=
0
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -1588,7 +1588,7 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id )
...
@@ -1588,7 +1588,7 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id )
module_Need
(
id
->
p_encoder
,
"encoder"
,
p_sys
->
psz_venc
,
VLC_TRUE
);
module_Need
(
id
->
p_encoder
,
"encoder"
,
p_sys
->
psz_venc
,
VLC_TRUE
);
if
(
!
id
->
p_encoder
->
p_module
)
if
(
!
id
->
p_encoder
->
p_module
)
{
{
msg_Err
(
p_stream
,
"cannot find encoder
"
);
msg_Err
(
p_stream
,
"cannot find encoder
(%s)"
,
p_sys
->
psz_venc
);
module_Unneed
(
id
->
p_decoder
,
id
->
p_decoder
->
p_module
);
module_Unneed
(
id
->
p_decoder
,
id
->
p_decoder
->
p_module
);
id
->
p_decoder
->
p_module
=
0
;
id
->
p_decoder
->
p_module
=
0
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -1901,7 +1901,7 @@ static int transcode_video_encoder_open( sout_stream_t *p_stream,
...
@@ -1901,7 +1901,7 @@ static int transcode_video_encoder_open( sout_stream_t *p_stream,
module_Need
(
id
->
p_encoder
,
"encoder"
,
p_sys
->
psz_venc
,
VLC_TRUE
);
module_Need
(
id
->
p_encoder
,
"encoder"
,
p_sys
->
psz_venc
,
VLC_TRUE
);
if
(
!
id
->
p_encoder
->
p_module
)
if
(
!
id
->
p_encoder
->
p_module
)
{
{
msg_Err
(
p_stream
,
"cannot find encoder
"
);
msg_Err
(
p_stream
,
"cannot find encoder
(%s)"
,
p_sys
->
psz_venc
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -2577,7 +2577,7 @@ static int transcode_spu_new( sout_stream_t *p_stream, sout_stream_id_t *id )
...
@@ -2577,7 +2577,7 @@ static int transcode_spu_new( sout_stream_t *p_stream, sout_stream_id_t *id )
if
(
!
id
->
p_encoder
->
p_module
)
if
(
!
id
->
p_encoder
->
p_module
)
{
{
module_Unneed
(
id
->
p_decoder
,
id
->
p_decoder
->
p_module
);
module_Unneed
(
id
->
p_decoder
,
id
->
p_decoder
->
p_module
);
msg_Err
(
p_stream
,
"cannot find encoder
"
);
msg_Err
(
p_stream
,
"cannot find encoder
(%s)"
,
p_sys
->
psz_senc
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
}
}
...
@@ -2713,7 +2713,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
...
@@ -2713,7 +2713,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
if
(
!
id
->
p_encoder
->
p_module
)
if
(
!
id
->
p_encoder
->
p_module
)
{
{
msg_Err
(
p_stream
,
"cannot find encoder
"
);
msg_Err
(
p_stream
,
"cannot find encoder
(%s)"
,
p_sys
->
psz_osdenc
);
goto
error
;
goto
error
;
}
}
...
...
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