Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
40972f7c
Commit
40972f7c
authored
Nov 06, 2011
by
Martin Storsjö
Committed by
Anton Khirnov
Nov 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avplay: Set the new interrupt callback
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
2abe947a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
avplay.c
avplay.c
+3
-2
No files found.
avplay.c
View file @
40972f7c
...
...
@@ -2339,7 +2339,7 @@ static void stream_component_close(VideoState *is, int stream_index)
variable instead of a thread local variable */
static
VideoState
*
global_video_state
;
static
int
decode_interrupt_cb
(
void
)
static
int
decode_interrupt_cb
(
void
*
ctx
)
{
return
(
global_video_state
&&
global_video_state
->
abort_request
);
}
...
...
@@ -2364,8 +2364,9 @@ static int decode_thread(void *arg)
is
->
subtitle_stream
=
-
1
;
global_video_state
=
is
;
avio_set_interrupt_cb
(
decode_interrupt_cb
);
ic
=
avformat_alloc_context
();
ic
->
interrupt_callback
.
callback
=
decode_interrupt_cb
;
err
=
avformat_open_input
(
&
ic
,
is
->
filename
,
is
->
iformat
,
&
format_opts
);
if
(
err
<
0
)
{
print_error
(
is
->
filename
,
err
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment