summaryrefslogtreecommitdiff
path: root/libavformat/demux_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/demux_utils.c')
-rw-r--r--libavformat/demux_utils.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/demux_utils.c b/libavformat/demux_utils.c
index ffcadc1900..4d9ba9a028 100644
--- a/libavformat/demux_utils.c
+++ b/libavformat/demux_utils.c
@@ -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);
+}