mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat/utils: Move av_read_(play|pause) to demux_utils.c
These functions are for demuxers only. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f104352b91
commit
0b0dfb765d
2 changed files with 18 additions and 18 deletions
|
|
@ -197,3 +197,21 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int av_read_play(AVFormatContext *s)
|
||||
{
|
||||
if (s->iformat->read_play)
|
||||
return s->iformat->read_play(s);
|
||||
if (s->pb)
|
||||
return avio_pause(s->pb, 0);
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
int av_read_pause(AVFormatContext *s)
|
||||
{
|
||||
if (s->iformat->read_pause)
|
||||
return s->iformat->read_pause(s);
|
||||
if (s->pb)
|
||||
return avio_pause(s->pb, 1);
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue