[vlc-commits] caf: remove tautology

Rémi Denis-Courmont git at videolan.org
Thu May 3 18:39:02 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May  3 19:36:41 2018 +0300| [438f1ee0a0fc23170d6c89b1135c856d00e8029c] | committer: Rémi Denis-Courmont

caf: remove tautology

p_sys->es cannot be NULL here.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=438f1ee0a0fc23170d6c89b1135c856d00e8029c
---

 modules/demux/caf.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/demux/caf.c b/modules/demux/caf.c
index 7fa909dac6..e5a3682f51 100644
--- a/modules/demux/caf.c
+++ b/modules/demux/caf.c
@@ -991,13 +991,8 @@ static int Demux( demux_t *p_demux )
 
     FrameSpanAddSpan( &p_sys->position, &advance );
 
-    /* set PCR */
     es_out_SetPCR( p_demux->out, p_block->i_pts );
-
-    if( p_sys->es )
-        es_out_Send( p_demux->out, p_sys->es, p_block );
-    else
-        block_Release( p_block );
+    es_out_Send( p_demux->out, p_sys->es, p_block );
 
     return VLC_DEMUXER_SUCCESS;
 }



More information about the vlc-commits mailing list