Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ac49e6e1
Commit
ac49e6e1
authored
Jun 07, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport [20439]: deadlock
parent
15fb2653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/audio_output/dec.c
src/audio_output/dec.c
+7
-5
No files found.
src/audio_output/dec.c
View file @
ac49e6e1
...
@@ -58,14 +58,14 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
...
@@ -58,14 +58,14 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
if
(
p_aout
->
i_nb_inputs
>=
AOUT_MAX_INPUTS
)
if
(
p_aout
->
i_nb_inputs
>=
AOUT_MAX_INPUTS
)
{
{
msg_Err
(
p_aout
,
"too many inputs already (%d)"
,
p_aout
->
i_nb_inputs
);
msg_Err
(
p_aout
,
"too many inputs already (%d)"
,
p_aout
->
i_nb_inputs
);
return
NULL
;
goto
error
;
}
}
p_input
=
malloc
(
sizeof
(
aout_input_t
));
p_input
=
malloc
(
sizeof
(
aout_input_t
));
if
(
p_input
==
NULL
)
if
(
p_input
==
NULL
)
{
{
msg_Err
(
p_aout
,
"out of memory"
);
msg_Err
(
p_aout
,
"out of memory"
);
return
NULL
;
goto
error
;
}
}
vlc_mutex_init
(
p_aout
,
&
p_input
->
lock
);
vlc_mutex_init
(
p_aout
,
&
p_input
->
lock
);
...
@@ -116,14 +116,12 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
...
@@ -116,14 +116,12 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
if
(
aout_MixerNew
(
p_aout
)
==
-
1
)
if
(
aout_MixerNew
(
p_aout
)
==
-
1
)
{
{
aout_OutputDelete
(
p_aout
);
aout_OutputDelete
(
p_aout
);
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
goto
error
;
return
NULL
;
}
}
aout_InputNew
(
p_aout
,
p_input
);
aout_InputNew
(
p_aout
,
p_input
);
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
var_Create
(
p_this
,
"audio-desync"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_this
,
"audio-desync"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_this
,
"audio-desync"
,
&
val
);
var_Get
(
p_this
,
"audio-desync"
,
&
val
);
p_input
->
i_desync
=
val
.
i_int
*
1000
;
p_input
->
i_desync
=
val
.
i_int
*
1000
;
...
@@ -145,6 +143,10 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
...
@@ -145,6 +143,10 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
}
}
return
p_input
;
return
p_input
;
error:
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
return
NULL
;
}
}
aout_input_t
*
__aout_DecNew
(
vlc_object_t
*
p_this
,
aout_input_t
*
__aout_DecNew
(
vlc_object_t
*
p_this
,
...
...
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