[vlc-commits] demux: ts: kill warning

Francois Cartegnie git at videolan.org
Sun May 12 20:00:22 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 10 17:17:02 2019 +0200| [ad1af48c5d187ac50d2a0d4f3ddff2d2a609aa04] | committer: Francois Cartegnie

demux: ts: kill warning

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

 modules/demux/mpeg/ts.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 82d805aff6..3ff513a2e9 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -2006,7 +2006,8 @@ static int SeekToTime( demux_t *p_demux, const ts_pmt_t *p_pmt, stime_t i_scaled
     if( !b_found )
     {
         msg_Dbg( p_demux, "Seek():cannot find a time position." );
-        vlc_stream_Seek( p_sys->stream, i_initial_pos );
+        if( vlc_stream_Seek( p_sys->stream, i_initial_pos ) != VLC_SUCCESS )
+            msg_Err( p_demux, "Can't seek back to %" PRIu64, i_initial_pos );
         return VLC_EGENERIC;
     }
     return VLC_SUCCESS;



More information about the vlc-commits mailing list