Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
28dd73a4
Commit
28dd73a4
authored
Feb 02, 2019
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: use different decoder names for each media type
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
2b8458fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ffplay.c
fftools/ffplay.c
+5
-5
No files found.
fftools/ffplay.c
View file @
28dd73a4
...
...
@@ -2103,10 +2103,10 @@ static int audio_thread(void *arg)
return
ret
;
}
static
int
decoder_start
(
Decoder
*
d
,
int
(
*
fn
)(
void
*
),
void
*
arg
)
static
int
decoder_start
(
Decoder
*
d
,
int
(
*
fn
)(
void
*
),
const
char
*
thread_name
,
void
*
arg
)
{
packet_queue_start
(
d
->
queue
);
d
->
decoder_tid
=
SDL_CreateThread
(
fn
,
"decoder"
,
arg
);
d
->
decoder_tid
=
SDL_CreateThread
(
fn
,
thread_name
,
arg
);
if
(
!
d
->
decoder_tid
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"SDL_CreateThread(): %s
\n
"
,
SDL_GetError
());
return
AVERROR
(
ENOMEM
);
...
...
@@ -2676,7 +2676,7 @@ static int stream_component_open(VideoState *is, int stream_index)
is
->
auddec
.
start_pts
=
is
->
audio_st
->
start_time
;
is
->
auddec
.
start_pts_tb
=
is
->
audio_st
->
time_base
;
}
if
((
ret
=
decoder_start
(
&
is
->
auddec
,
audio_thread
,
is
))
<
0
)
if
((
ret
=
decoder_start
(
&
is
->
auddec
,
audio_thread
,
"audio_decoder"
,
is
))
<
0
)
goto
out
;
SDL_PauseAudioDevice
(
audio_dev
,
0
);
break
;
...
...
@@ -2685,7 +2685,7 @@ static int stream_component_open(VideoState *is, int stream_index)
is
->
video_st
=
ic
->
streams
[
stream_index
];
decoder_init
(
&
is
->
viddec
,
avctx
,
&
is
->
videoq
,
is
->
continue_read_thread
);
if
((
ret
=
decoder_start
(
&
is
->
viddec
,
video_thread
,
is
))
<
0
)
if
((
ret
=
decoder_start
(
&
is
->
viddec
,
video_thread
,
"video_decoder"
,
is
))
<
0
)
goto
out
;
is
->
queue_attachments_req
=
1
;
break
;
...
...
@@ -2694,7 +2694,7 @@ static int stream_component_open(VideoState *is, int stream_index)
is
->
subtitle_st
=
ic
->
streams
[
stream_index
];
decoder_init
(
&
is
->
subdec
,
avctx
,
&
is
->
subtitleq
,
is
->
continue_read_thread
);
if
((
ret
=
decoder_start
(
&
is
->
subdec
,
subtitle_thread
,
is
))
<
0
)
if
((
ret
=
decoder_start
(
&
is
->
subdec
,
subtitle_thread
,
"subtitle_decoder"
,
is
))
<
0
)
goto
out
;
break
;
default:
...
...
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