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
e9dea57b
Commit
e9dea57b
authored
Dec 23, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Dec 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chromecast: only lock once when checking the current app
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b84d8384
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/stream_out/chromecast/chromecast_ctrl.cpp
modules/stream_out/chromecast/chromecast_ctrl.cpp
+8
-7
No files found.
modules/stream_out/chromecast/chromecast_ctrl.cpp
View file @
e9dea57b
...
...
@@ -276,21 +276,23 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
{
json_value
applications
=
(
*
p_data
)[
"status"
][
"applications"
];
const
json_value
*
p_app
=
NULL
;
vlc_mutex_locker
locker
(
&
lock
);
for
(
unsigned
i
=
0
;
i
<
applications
.
u
.
array
.
length
;
++
i
)
{
std
::
string
appId
(
applications
[
i
][
"appId"
]);
if
(
appId
==
APP_ID
)
{
const
char
*
pz_transportId
=
applications
[
i
][
"transportId"
];
if
(
pz_transportId
!=
NULL
)
{
appTransportId
=
std
::
string
(
pz_transportId
);
p_app
=
&
applications
[
i
];
vlc_mutex_lock
(
&
lock
);
if
(
appTransportId
.
empty
())
appTransportId
=
std
::
string
(
applications
[
i
][
"transportId"
]);
vlc_mutex_unlock
(
&
lock
);
}
break
;
}
}
vlc_mutex_lock
(
&
lock
);
if
(
p_app
)
{
if
(
!
appTransportId
.
empty
()
...
...
@@ -318,7 +320,6 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
}
}
vlc_mutex_unlock
(
&
lock
);
}
else
{
...
...
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