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
1182e9d4
Commit
1182e9d4
authored
Oct 22, 2014
by
Adrien Maglo
Committed by
Jean-Baptiste Kempf
Oct 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chromecast: fix the device loading timeout
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
2df1cc66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
modules/stream_out/chromecast/cast.cpp
modules/stream_out/chromecast/cast.cpp
+13
-12
No files found.
modules/stream_out/chromecast/cast.cpp
View file @
1182e9d4
...
...
@@ -284,20 +284,21 @@ static int Open(vlc_object_t *p_this)
// Lock the sout thread until we have sent the media loading command to the Chromecast.
int
i_ret
=
0
;
{
const
mtime_t
deadline
=
mdate
()
+
6
*
CLOCK_FREQ
;
vlc_mutex_locker
locker
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
while
(
p_sys
->
i_status
!=
CHROMECAST_MEDIA_LOAD_SENT
)
{
i_ret
=
vlc_cond_timedwait
(
&
p_sys
->
loadCommandCond
,
&
p_sys
->
lock
,
deadline
);
}
if
(
i_ret
==
ETIMEDOUT
)
{
msg_Err
(
p_stream
,
"Timeout reached before sending the media loading command"
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_cancel
(
p_sys
->
chromecastThread
);
vlc_join
(
p_sys
->
chromecastThread
,
NULL
);
Clean
(
p_stream
);
return
VLC_EGENERIC
;
}
}
vlc_mutex_unlock
(
&
p_sys
->
lock
);
/* Even uglier: sleep more to let to the Chromecast initiate the connection
* to the http server. */
...
...
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