History

avformat/concatdec: pass the interrupt callback on

Zhang Rui committed 12 years ago

Commit 49586281 parent 1c1bb201 file · +7 −0Browse files

Unified · Split

libavformat/concatdec.c+7−0
@@ -132,9 +132,16 @@ static int open_file(AVFormatContext *avf, unsigned fileno) · 131 unmodified lines
132132
133133 if (cat->avf)
134134 avformat_close_input(&cat->avf);
135+
136+ cat->avf = avformat_alloc_context();
137+ if (!cat->avf)
138+ return AVERROR(ENOMEM);
139+
140+ cat->avf->interrupt_callback = avf->interrupt_callback;
135141 if ((ret = avformat_open_input(&cat->avf, file->url, NULL, NULL)) < 0 ||
136142 (ret = avformat_find_stream_info(cat->avf, NULL)) < 0) {
137143 av_log(avf, AV_LOG_ERROR, "Impossible to open '%s'\n", file->url);
144+ avformat_close_input(&cat->avf);
138145 return ret;
139146 }
140147 cat->cur_file = file;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t