[vlc-commits] chromecast: remove unused requestPlayerSeek method
Thomas Guillem
git at videolan.org
Fri Feb 23 08:29:36 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 20 17:36:42 2018 +0100| [aad6a93d19769377f6430277eb8420ef65eb433b] | committer: Thomas Guillem
chromecast: remove unused requestPlayerSeek method
(cherry picked from commit d1028d3aa5046feacdd24701bb4c5d0f3d415ffe)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=aad6a93d19769377f6430277eb8420ef65eb433b
---
modules/stream_out/chromecast/chromecast.h | 1 -
.../stream_out/chromecast/chromecast_communication.cpp | 15 ---------------
2 files changed, 16 deletions(-)
diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index 2be942969b..35a74e8d44 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -171,7 +171,6 @@ struct intf_sys_t
void setRetryOnFail(bool);
void setHasInput(const std::string mime_type = "");
- bool requestPlayerSeek(mtime_t pos);
void setOnInputEventCb(on_input_event_itf on_input_event, void *on_input_event_data);
void setOnPausedChangedCb(on_paused_changed_itf on_paused_changed,
void *on_paused_changed_data);
diff --git a/modules/stream_out/chromecast/chromecast_communication.cpp b/modules/stream_out/chromecast/chromecast_communication.cpp
index a11ec4c899..ed62681f21 100644
--- a/modules/stream_out/chromecast/chromecast_communication.cpp
+++ b/modules/stream_out/chromecast/chromecast_communication.cpp
@@ -403,21 +403,6 @@ unsigned ChromecastCommunication::msgPlayerSetVolume( const std::string& destina
return pushMediaPlayerMessage( destinationId, ss ) == VLC_SUCCESS ? id : kInvalidId;
}
-unsigned ChromecastCommunication::msgPlayerSeek( const std::string& destinationId, int64_t mediaSessionId, const std::string& currentTime )
-{
- assert(mediaSessionId != 0);
- unsigned id = getNextRequestId();
-
- std::stringstream ss;
- ss << "{\"type\":\"SEEK\","
- << "\"currentTime\":" << currentTime << ","
- << "\"mediaSessionId\":" << mediaSessionId << ","
- << "\"requestId\":" << id
- << "}";
-
- return pushMediaPlayerMessage( destinationId, ss ) == VLC_SUCCESS ? id : kInvalidId;
-}
-
/**
* @brief Send a message to the Chromecast
* @param msg the CastMessage to send
More information about the vlc-commits
mailing list