# HG changeset patch # User mstorsjo # Date 1279961032 0 # Node ID 0ad342a200fbb014763ba75ee9c403747bebc474 # Parent 50b1c5de4b710ed78733e2071b3e790d6d7f6cd9 mpegts: Warn if unable to seek back diff -r 50b1c5de4b71 -r 0ad342a200fb mpegts.c --- a/mpegts.c Fri Jul 23 00:27:17 2010 +0000 +++ b/mpegts.c Sat Jul 24 08:43:52 2010 +0000 @@ -1387,7 +1387,8 @@ /* normal demux */ /* first do a scaning to get all the services */ - url_fseek(pb, pos, SEEK_SET); + if (url_fseek(pb, pos, SEEK_SET) < 0) + av_log(s, AV_LOG_ERROR, "Unable to seek back to the start\n"); mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1);