These functions are for demuxers only.
Showing the changes to libavformat (2 of 2 files). Show all
Unified · Split
| @@ -197,3 +197,21 @@ FF_ENABLE_DEPRECATION_WARNINGS · 196 unmodified lines | |||
| 197 | } | 197 | } |
| 198 | return 0; | 198 | return 0; |
| 199 | } | 199 | } |
| 200 | |||
| 201 | int av_read_play(AVFormatContext *s) | ||
| 202 | { | ||
| 203 | if (s->iformat->read_play) | ||
| 204 | return s->iformat->read_play(s); | ||
| 205 | if (s->pb) | ||
| 206 | return avio_pause(s->pb, 0); | ||
| 207 | return AVERROR(ENOSYS); | ||
| 208 | } | ||
| 209 | |||
| 210 | int av_read_pause(AVFormatContext *s) | ||
| 211 | { | ||
| 212 | if (s->iformat->read_pause) | ||
| 213 | return s->iformat->read_pause(s); | ||
| 214 | if (s->pb) | ||
| 215 | return avio_pause(s->pb, 1); | ||
| 216 | return AVERROR(ENOSYS); | ||
| 217 | } | ||
| @@ -458,24 +458,6 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, · 457 unmodified lines | |||
| 458 | 458 | ||
| 459 | /*******************************************************/ | 459 | /*******************************************************/ |
| 460 | 460 | ||
| 461 | int av_read_play(AVFormatContext *s) | ||
| 462 | { | ||
| 463 | if (s->iformat->read_play) | ||
| 464 | return s->iformat->read_play(s); | ||
| 465 | if (s->pb) | ||
| 466 | return avio_pause(s->pb, 0); | ||
| 467 | return AVERROR(ENOSYS); | ||
| 468 | } | ||
| 469 | |||
| 470 | int av_read_pause(AVFormatContext *s) | ||
| 471 | { | ||
| 472 | if (s->iformat->read_pause) | ||
| 473 | return s->iformat->read_pause(s); | ||
| 474 | if (s->pb) | ||
| 475 | return avio_pause(s->pb, 1); | ||
| 476 | return AVERROR(ENOSYS); | ||
| 477 | } | ||
| 478 | |||
| 479 | int ff_stream_side_data_copy(AVStream *dst, const AVStream *src) | 461 | int ff_stream_side_data_copy(AVStream *dst, const AVStream *src) |
| 480 | { | 462 | { |
| 481 | /* Free existing side data*/ | 463 | /* Free existing side data*/ |