New upstream version 24.0.5+dfsg1
This commit is contained in:
parent
52fa83f147
commit
4c2ea24267
61 changed files with 710 additions and 130 deletions
10
deps/media-playback/media-playback/media.c
vendored
10
deps/media-playback/media-playback/media.c
vendored
|
|
@ -139,7 +139,7 @@ static int mp_media_next_packet(mp_media_t *media)
|
|||
|
||||
int ret = av_read_frame(media->fmt, &pkt);
|
||||
if (ret < 0) {
|
||||
if (ret != AVERROR_EOF)
|
||||
if (ret != AVERROR_EOF && ret != AVERROR_EXIT)
|
||||
blog(LOG_WARNING, "MP: av_read_frame failed: %s (%d)",
|
||||
av_err2str(ret), ret);
|
||||
return ret;
|
||||
|
|
@ -230,7 +230,7 @@ static bool mp_media_prepare_frames(mp_media_t *m)
|
|||
while (!mp_media_ready_to_start(m)) {
|
||||
if (!m->eof) {
|
||||
int ret = mp_media_next_packet(m);
|
||||
if (ret == AVERROR_EOF)
|
||||
if (ret == AVERROR_EOF || ret == AVERROR_EXIT)
|
||||
m->eof = true;
|
||||
else if (ret < 0)
|
||||
return false;
|
||||
|
|
@ -577,8 +577,10 @@ static bool init_avformat(mp_media_t *m)
|
|||
av_dict_set_int(&opts, "buffer_size", m->buffering, 0);
|
||||
|
||||
m->fmt = avformat_alloc_context();
|
||||
m->fmt->interrupt_callback.callback = interrupt_callback;
|
||||
m->fmt->interrupt_callback.opaque = m;
|
||||
if (!m->is_local_file) {
|
||||
m->fmt->interrupt_callback.callback = interrupt_callback;
|
||||
m->fmt->interrupt_callback.opaque = m;
|
||||
}
|
||||
|
||||
int ret = avformat_open_input(&m->fmt, m->path, format,
|
||||
opts ? &opts : NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue