vlc | branch: master | Rémi Denis-Courmont <r...@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;
 }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to