Commit bd795dd2 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

mpeg-ts: check stream_Seek() result

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 53a832b2
...@@ -2977,7 +2977,8 @@ static int ProbeStart( demux_t *p_demux, int i_program ) ...@@ -2977,7 +2977,8 @@ static int ProbeStart( demux_t *p_demux, int i_program )
i_probe_count += PROBE_CHUNK_COUNT; i_probe_count += PROBE_CHUNK_COUNT;
} while( i_pos > 0 && (i_pcr == -1 || !b_found) && i_probe_count < (2 * 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; return (b_found) ? VLC_SUCCESS : VLC_EGENERIC;
} }
...@@ -3007,7 +3008,8 @@ static int ProbeEnd( demux_t *p_demux, int i_program ) ...@@ -3007,7 +3008,8 @@ static int ProbeEnd( demux_t *p_demux, int i_program )
i_probe_count += PROBE_CHUNK_COUNT; i_probe_count += PROBE_CHUNK_COUNT;
} while( i_pos > 0 && (i_pcr == -1 || !b_found) && i_probe_count < (6 * 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; return (b_found) ? VLC_SUCCESS : VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment