[vlc-commits] demux:ogg: remove dead code

Steve Lhomme git at videolan.org
Fri May 4 10:37:55 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May  3 17:45:44 2018 +0200| [e95c409265ac6239dd8d5617e184cb0dfacc4fd2] | committer: Rémi Denis-Courmont

demux:ogg: remove dead code

it's exactly the same tests as the other part of the else

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/demux/ogg.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 50c069ceda..6601dbdfb9 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1198,10 +1198,6 @@ static void Ogg_SendOrQueueBlocks( demux_t *p_demux, logical_stream_t *p_stream,
                     block_Release( tosend );
                     continue;
                 }
-                else if( tosend->i_dts < VLC_TS_0 )
-                {
-                    tosend->i_dts = tosend->i_pts;
-                }
 
                 DemuxDebug( msg_Dbg( p_demux, "block sent from preparse > dts %"PRId64" pts %"PRId64" spcr %"PRId64" pcr %"PRId64,
                          tosend->i_dts, tosend->i_pts, p_stream->i_pcr, p_ogg->i_pcr ); )



More information about the vlc-commits mailing list