Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
56c32065
Commit
56c32065
authored
Sep 20, 2007
by
Jean-Paul Saman
Browse files
Fix return values for spu_Create() and spu_Init().
parent
072bd8fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/transcode.c
View file @
56c32065
...
...
@@ -2857,8 +2857,7 @@ static int transcode_osd_new( sout_stream_t *p_stream, sout_stream_id_t *id )
if
(
!
p_sys
->
p_spu
)
{
p_sys
->
p_spu
=
spu_Create
(
p_stream
);
if
(
spu_Init
(
p_sys
->
p_spu
)
!=
VLC_SUCCESS
)
msg_Err
(
p_sys
,
"spu initialisation failed"
);
spu_Init
(
p_sys
->
p_spu
);
}
return
VLC_SUCCESS
;
...
...
@@ -2902,8 +2901,7 @@ static int transcode_osd_process( sout_stream_t *p_stream,
if
(
!
p_sys
->
p_spu
)
{
p_sys
->
p_spu
=
spu_Create
(
p_stream
);
if
(
spu_Init
(
p_sys
->
p_spu
)
!=
VLC_SUCCESS
)
msg_Err
(
p_stream
,
"spu initialisation failed"
);
spu_Init
(
p_sys
->
p_spu
);
}
}
...
...
src/video_output/vout_subpictures.c
View file @
56c32065
...
...
@@ -114,7 +114,7 @@ int spu_Init( spu_t *p_spu )
spu_ParseChain
(
p_spu
);
return
VLC_
EGENERIC
;
return
VLC_
SUCCESS
;
}
int
spu_ParseChain
(
spu_t
*
p_spu
)
...
...
@@ -167,7 +167,7 @@ int spu_ParseChain( spu_t *p_spu )
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
return
VLC_
EGENERIC
;
return
VLC_
SUCCESS
;
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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