changeset 6305:0ad342a200fb libavformat

mpegts: Warn if unable to seek back
author mstorsjo
date Sat, 24 Jul 2010 08:43:52 +0000
parents 50b1c5de4b71
children 175c5f6cb556
files mpegts.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);