[vlc-devel] commit: Break long if statement in several lines. (Jean-Paul Saman )
git version control
git at videolan.org
Sun Jun 8 16:05:23 CEST 2008
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri Jun 6 11:59:15 2008 +0200| [dd8d083b9220e81aa08963696d60240d5b4b2fce]
Break long if statement in several lines.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd8d083b9220e81aa08963696d60240d5b4b2fce
---
modules/demux/ps.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/demux/ps.c b/modules/demux/ps.c
index d2db608..f7ffc3e 100644
--- a/modules/demux/ps.c
+++ b/modules/demux/ps.c
@@ -388,7 +388,9 @@ static int Demux( demux_t *p_demux )
#endif
!ps_pkt_parse_pes( p_pkt, tk->i_skip ) ) )
{
- if( !b_new && !p_sys->b_have_pack && tk->fmt.i_cat == AUDIO_ES && p_pkt->i_pts > 0 )
+ if( !b_new && !p_sys->b_have_pack &&
+ (tk->fmt.i_cat == AUDIO_ES) &&
+ (p_pkt->i_pts > 0) )
{
/* A hack to sync the A/V on PES files. */
msg_Dbg( p_demux, "force SCR: %"PRId64, p_pkt->i_pts );
More information about the vlc-devel
mailing list