aboutsummaryrefslogtreecommitdiffhomepage
path: root/demux/demux_raw.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-10-07 17:16:03 +0200
committerGravatar wm4 <wm4@nowhere>2013-10-07 17:21:53 +0200
commitde6eace6e984be3cd2515e9be6362a0cf04b7457 (patch)
tree04b8671b07e9d08aacbc5743623eac7474e2c83b /demux/demux_raw.c
parentccdaecfc5cc53b6c6ca3f46ca37ff74a36eb58dd (diff)
command: sub_seek: avoid getting stuck
First, don't try to seek if the result is 0 (i.e. nothing found, or subtitle event happens to be exactly on spot). Second, since we never can make sure that we actually seek to the exact subtitle PTS (seeking "snaps" to video PTS), offset the seek by 10ms. Since most subtitle events are longer than 10ms, this should work fine.
Diffstat (limited to 'demux/demux_raw.c')
0 files changed, 0 insertions, 0 deletions