Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4653)

Unified Diff: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc

Issue 1145163005: Add set_timestamp to cma's DecoderBufferBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
diff --git a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
index 93421a5139c3184e7428bd57b0c5e116f739a8ca..ab3a25878511bdd89262f2f0397f45afddb4f886 100644
--- a/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
+++ b/chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.cc
@@ -26,6 +26,7 @@ class DecoderBufferFromMsg : public DecoderBufferBase {
// DecoderBufferBase implementation.
StreamId stream_id() const override;
base::TimeDelta timestamp() const override;
+ void set_timestamp(const base::TimeDelta& timestamp) override;
const uint8* data() const override;
uint8* writable_data() const override;
size_t data_size() const override;
@@ -114,6 +115,10 @@ base::TimeDelta DecoderBufferFromMsg::timestamp() const {
return pts_;
}
+void DecoderBufferFromMsg::set_timestamp(const base::TimeDelta& timestamp) {
+ pts_ = timestamp;
+}
+
const uint8* DecoderBufferFromMsg::data() const {
CHECK(msg_->IsSerializedMsgAvailable());
return data_;

Powered by Google App Engine
This is Rietveld 408576698