comparison utils.c @ 2842:bc317b8d7090 libavformat

remove double check of pb->read_seek
author aurel
date Thu, 20 Dec 2007 00:25:18 +0000
parents a41a1ec2213c
children c56f975e7661
comparison
equal deleted inserted replaced
2841:a41a1ec2213c 2842:bc317b8d7090
2040 2040
2041 int av_read_play(AVFormatContext *s) 2041 int av_read_play(AVFormatContext *s)
2042 { 2042 {
2043 if (s->iformat->read_play) 2043 if (s->iformat->read_play)
2044 return s->iformat->read_play(s); 2044 return s->iformat->read_play(s);
2045 if (s->pb && s->pb->read_pause) 2045 if (s->pb)
2046 return av_url_read_fpause(s->pb, 0); 2046 return av_url_read_fpause(s->pb, 0);
2047 return AVERROR(ENOSYS); 2047 return AVERROR(ENOSYS);
2048 } 2048 }
2049 2049
2050 int av_read_pause(AVFormatContext *s) 2050 int av_read_pause(AVFormatContext *s)
2051 { 2051 {
2052 if (s->iformat->read_pause) 2052 if (s->iformat->read_pause)
2053 return s->iformat->read_pause(s); 2053 return s->iformat->read_pause(s);
2054 if (s->pb && s->pb->read_pause) 2054 if (s->pb)
2055 return av_url_read_fpause(s->pb, 1); 2055 return av_url_read_fpause(s->pb, 1);
2056 return AVERROR(ENOSYS); 2056 return AVERROR(ENOSYS);
2057 } 2057 }
2058 2058
2059 void av_close_input_stream(AVFormatContext *s) 2059 void av_close_input_stream(AVFormatContext *s)