Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
456
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
d4898706
Commit
d4898706
authored
9 years ago
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
chromecast: pass const references to buildMessage()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
434bd4b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/stream_out/chromecast/chromecast.h
+4
-3
4 additions, 3 deletions
modules/stream_out/chromecast/chromecast.h
modules/stream_out/chromecast/chromecast_ctrl.cpp
+5
-4
5 additions, 4 deletions
modules/stream_out/chromecast/chromecast_ctrl.cpp
with
9 additions
and
7 deletions
modules/stream_out/chromecast/chromecast.h
+
4
−
3
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
;
...
...
This diff is collapsed.
Click to expand it.
modules/stream_out/chromecast/chromecast_ctrl.cpp
+
5
−
4
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment