Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
4f8856ee
Commit
4f8856ee
authored
Oct 01, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deadlock
parent
a20b50b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/misc/objects.c
src/misc/objects.c
+8
-5
No files found.
src/misc/objects.c
View file @
4f8856ee
...
@@ -515,12 +515,15 @@ vlc_bool_t __vlc_object_wait( vlc_object_t *obj )
...
@@ -515,12 +515,15 @@ vlc_bool_t __vlc_object_wait( vlc_object_t *obj )
vlc_assert_locked
(
&
obj
->
object_lock
);
vlc_assert_locked
(
&
obj
->
object_lock
);
int
fd
=
obj
->
p_internals
->
pipes
[
0
];
int
fd
=
obj
->
p_internals
->
pipes
[
0
];
if
(
(
fd
!=
-
1
)
if
(
fd
!=
-
1
)
&&
(
read
(
fd
,
&
(
char
){
0
},
1
)
==
0
)
)
{
{
close
(
fd
);
if
(
read
(
fd
,
&
(
char
){
0
},
1
)
==
0
)
obj
->
p_internals
->
pipes
[
1
]
=
-
1
;
{
}
close
(
fd
);
obj
->
p_internals
->
pipes
[
1
]
=
-
1
;
}
return
obj
->
b_die
;
}
vlc_cond_wait
(
&
obj
->
object_wait
,
&
obj
->
object_lock
);
vlc_cond_wait
(
&
obj
->
object_wait
,
&
obj
->
object_lock
);
return
obj
->
b_die
;
return
obj
->
b_die
;
...
...
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