History

avplay: Set the new interrupt callback

Martin Storsjö committed 15 years ago

Commit 40972f71 parent 2abe9471 file · +3 −2Browse files

Unified · Split

avplay.c+3−2
@@ -2339,7 +2339,7 @@ static void stream_component_close(VideoState *is, int stream_index) · 2338 unmodified lines
23392339 variable instead of a thread local variable */
23402340 static VideoState *global_video_state;
23412341
2342−static int decode_interrupt_cb(void)
2342+static int decode_interrupt_cb(void *ctx)
23432343 {
23442344 return (global_video_state && global_video_state->abort_request);
23452345 }
@@ -2364,8 +2364,9 @@ static int decode_thread(void *arg) · 18 unmodified lines
23642364 is->subtitle_stream = -1;
23652365
23662366 global_video_state = is;
2367− avio_set_interrupt_cb(decode_interrupt_cb);
23682367
2368+ ic = avformat_alloc_context();
2369+ ic->interrupt_callback.callback = decode_interrupt_cb;
23692370 err = avformat_open_input(&ic, is->filename, is->iformat, &format_opts);
23702371 if (err < 0) {
23712372 print_error(is->filename, err);

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