[vlc-commits] mpeg-ts: check stream_Seek() result
Petri Hintukainen
git at videolan.org
Fri Dec 11 14:04:02 CET 2015
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Fri Dec 11 14:53:59 2015 +0200| [bd795dd24362b118f6042ad0e3a7606978a1335d] | committer: Jean-Baptiste Kempf
mpeg-ts: check stream_Seek() result
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bd795dd24362b118f6042ad0e3a7606978a1335d
---
modules/demux/mpeg/ts.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 694911a..c1b4ded 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -2977,7 +2977,8 @@ static int ProbeStart( demux_t *p_demux, int i_program )
i_probe_count += PROBE_CHUNK_COUNT;
} while( i_pos > 0 && (i_pcr == -1 || !b_found) && i_probe_count < (2 * PROBE_CHUNK_COUNT) );
- stream_Seek( p_sys->stream, i_initial_pos );
+ if( stream_Seek( p_sys->stream, i_initial_pos ) )
+ return VLC_EGENERIC;
return (b_found) ? VLC_SUCCESS : VLC_EGENERIC;
}
@@ -3007,7 +3008,8 @@ static int ProbeEnd( demux_t *p_demux, int i_program )
i_probe_count += PROBE_CHUNK_COUNT;
} while( i_pos > 0 && (i_pcr == -1 || !b_found) && i_probe_count < (6 * PROBE_CHUNK_COUNT) );
- stream_Seek( p_sys->stream, i_initial_pos );
+ if( stream_Seek( p_sys->stream, i_initial_pos ) )
+ return VLC_EGENERIC;
return (b_found) ? VLC_SUCCESS : VLC_EGENERIC;
}
More information about the vlc-commits
mailing list