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
e24f192a
Commit
e24f192a
authored
Dec 21, 2017
by
wm4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: drop lock manager use
Deprecated and useless.
parent
a04c2c70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
ffplay.c
fftools/ffplay.c
+0
-27
No files found.
fftools/ffplay.c
View file @
e24f192a
...
...
@@ -1284,7 +1284,6 @@ static void do_exit(VideoState *is)
SDL_DestroyRenderer
(
renderer
);
if
(
window
)
SDL_DestroyWindow
(
window
);
av_lockmgr_register
(
NULL
);
uninit_opts
();
#if CONFIG_AVFILTER
av_freep
(
&
vfilters_list
);
...
...
@@ -3641,27 +3640,6 @@ void show_help_default(const char *opt, const char *arg)
);
}
static
int
lockmgr
(
void
**
mtx
,
enum
AVLockOp
op
)
{
switch
(
op
)
{
case
AV_LOCK_CREATE
:
*
mtx
=
SDL_CreateMutex
();
if
(
!*
mtx
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"SDL_CreateMutex(): %s
\n
"
,
SDL_GetError
());
return
1
;
}
return
0
;
case
AV_LOCK_OBTAIN
:
return
!!
SDL_LockMutex
(
*
mtx
);
case
AV_LOCK_RELEASE
:
return
!!
SDL_UnlockMutex
(
*
mtx
);
case
AV_LOCK_DESTROY
:
SDL_DestroyMutex
(
*
mtx
);
return
0
;
}
return
1
;
}
/* Called from the main */
int
main
(
int
argc
,
char
**
argv
)
{
...
...
@@ -3723,11 +3701,6 @@ int main(int argc, char **argv)
SDL_EventState
(
SDL_SYSWMEVENT
,
SDL_IGNORE
);
SDL_EventState
(
SDL_USEREVENT
,
SDL_IGNORE
);
if
(
av_lockmgr_register
(
lockmgr
))
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"Could not initialize lock manager!
\n
"
);
do_exit
(
NULL
);
}
av_init_packet
(
&
flush_pkt
);
flush_pkt
.
data
=
(
uint8_t
*
)
&
flush_pkt
;
...
...
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