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
e8d7355d
Commit
e8d7355d
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: better and less logs
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
1db58448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
modules/stream_out/chromecast/chromecast_ctrl.cpp
modules/stream_out/chromecast/chromecast_ctrl.cpp
+15
-7
No files found.
modules/stream_out/chromecast/chromecast_ctrl.cpp
View file @
e8d7355d
...
...
@@ -225,6 +225,10 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
{
const
std
::
string
&
namespace_
=
msg
.
namespace_
();
#ifndef NDEBUG
msg_Dbg
(
p_stream
,
"processMessage: %s->%s %s"
,
namespace_
.
c_str
(),
msg
.
destination_id
().
c_str
(),
msg
.
payload_utf8
().
c_str
());
#endif
if
(
namespace_
==
NAMESPACE_DEVICEAUTH
)
{
castchannel
::
DeviceAuthMessage
authMessage
;
...
...
@@ -262,7 +266,7 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
}
else
{
msg_
Err
(
p_stream
,
"Heartbeat command not supported: %s"
,
type
.
c_str
());
msg_
Warn
(
p_stream
,
"Heartbeat command not supported: %s"
,
type
.
c_str
());
}
json_value_free
(
p_data
);
...
...
@@ -337,7 +341,7 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
}
else
{
msg_
Err
(
p_stream
,
"Receiver command not supported: %s"
,
msg_
Warn
(
p_stream
,
"Receiver command not supported: %s"
,
msg
.
payload_utf8
().
c_str
());
}
...
...
@@ -351,8 +355,9 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
if
(
type
==
"MEDIA_STATUS"
)
{
json_value
status
=
(
*
p_data
)[
"status"
];
msg_Dbg
(
p_stream
,
"Player state: %s"
,
status
[
0
][
"playerState"
].
operator
const
char
*
());
msg_Dbg
(
p_stream
,
"Player state: %s sessionId:%d"
,
status
[
0
][
"playerState"
].
operator
const
char
*
(),
(
int
)(
json_int_t
)
status
[
0
][
"mediaSessionId"
]);
}
else
if
(
type
==
"LOAD_FAILED"
)
{
...
...
@@ -360,11 +365,14 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
msgReceiverClose
(
appTransportId
);
vlc_mutex_lock
(
&
lock
);
setConnectionStatus
(
CHROMECAST_CONNECTION_DEAD
);
vlc_mutex_unlock
(
&
lock
);
}
else
if
(
type
==
"INVALID_REQUEST"
)
{
msg_Dbg
(
p_stream
,
"We sent an invalid request reason:%s"
,
(
*
p_data
)[
"reason"
].
operator
const
char
*
());
}
else
{
msg_
Err
(
p_stream
,
"Media command not supported: %s"
,
msg_
Warn
(
p_stream
,
"Media command not supported: %s"
,
msg
.
payload_utf8
().
c_str
());
}
...
...
@@ -385,7 +393,7 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
}
else
{
msg_
Err
(
p_stream
,
"Connection command not supported: %s"
,
msg_
Warn
(
p_stream
,
"Connection command not supported: %s"
,
type
.
c_str
());
}
}
...
...
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