[vlc-devel] commit: Factorize a condition ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Dec 9 19:35:22 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Dec 9 20:34:38 2008 +0200| [05481e1866163134a4c8e6f7d46562e0656477c1] | committer: Rémi Denis-Courmont
Factorize a condition
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05481e1866163134a4c8e6f7d46562e0656477c1
---
modules/stream_out/transcode.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index 1156e5a..e081a0c 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -950,12 +950,11 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
sout_stream_sys_t *p_sys = p_stream->p_sys;
block_t *p_out = NULL;
- if( !id->b_transcode && id->id )
- {
- return sout_StreamIdSend( p_sys->p_out, id->id, p_buffer );
- }
- else if( !id->b_transcode )
+ if( !id->b_transcode )
{
+ if( id->id )
+ return sout_StreamIdSend( p_sys->p_out, id->id, p_buffer );
+
block_Release( p_buffer );
return VLC_EGENERIC;
}
More information about the vlc-devel
mailing list