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
d4898706
Commit
d4898706
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: pass const references to buildMessage()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
434bd4b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
modules/stream_out/chromecast/chromecast.h
modules/stream_out/chromecast/chromecast.h
+4
-3
modules/stream_out/chromecast/chromecast_ctrl.cpp
modules/stream_out/chromecast/chromecast_ctrl.cpp
+5
-4
No files found.
modules/stream_out/chromecast/chromecast.h
View file @
d4898706
...
...
@@ -114,9 +114,10 @@ struct intf_sys_t
private:
int
sendMessage
(
castchannel
::
CastMessage
&
msg
);
castchannel
::
CastMessage
buildMessage
(
std
::
string
namespace_
,
castchannel
::
CastMessage_PayloadType
payloadType
,
std
::
string
payload
,
std
::
string
destinationId
=
DEFAULT_CHOMECAST_RECEIVER
);
castchannel
::
CastMessage
buildMessage
(
const
std
::
string
&
namespace_
,
castchannel
::
CastMessage_PayloadType
payloadType
,
const
std
::
string
&
payload
,
const
std
::
string
&
destinationId
=
DEFAULT_CHOMECAST_RECEIVER
);
enum
connection_status
conn_status
;
...
...
modules/stream_out/chromecast/chromecast_ctrl.cpp
View file @
d4898706
...
...
@@ -52,9 +52,10 @@
* @param destinationId the destination idenifier
* @return the generated CastMessage
*/
castchannel
::
CastMessage
intf_sys_t
::
buildMessage
(
std
::
string
namespace_
,
castchannel
::
CastMessage_PayloadType
payloadType
,
std
::
string
payload
,
std
::
string
destinationId
)
castchannel
::
CastMessage
intf_sys_t
::
buildMessage
(
const
std
::
string
&
namespace_
,
castchannel
::
CastMessage_PayloadType
payloadType
,
const
std
::
string
&
payload
,
const
std
::
string
&
destinationId
)
{
castchannel
::
CastMessage
msg
;
...
...
@@ -348,7 +349,7 @@ void intf_sys_t::msgPlayerLoad()
free
(
psz_mime
);
castchannel
::
CastMessage
msg
=
buildMessage
(
"urn:x-cast:com.google.cast.media"
,
castchannel
::
CastMessage
msg
=
buildMessage
(
NAMESPACE_MEDIA
,
castchannel
::
CastMessage_PayloadType_STRING
,
ss
.
str
(),
appTransportId
);
messagesToSend
.
push
(
msg
);
...
...
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