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

Unified Diff: media/formats/mp2t/ts_section_pes.h

Issue 1874413003: Convert media/formats to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: media/formats/mp2t/ts_section_pes.h
diff --git a/media/formats/mp2t/ts_section_pes.h b/media/formats/mp2t/ts_section_pes.h
index a8b5c163f9182c296e29475b73913f3c2061c08c..6b448b1136b9212438f08439bc4aa488d07343f8 100644
--- a/media/formats/mp2t/ts_section_pes.h
+++ b/media/formats/mp2t/ts_section_pes.h
@@ -7,9 +7,10 @@
#include <stdint.h>
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "media/base/byte_queue.h"
#include "media/formats/mp2t/ts_section.h"
@@ -21,7 +22,7 @@ class TimestampUnroller;
class TsSectionPes : public TsSection {
public:
- TsSectionPes(scoped_ptr<EsParser> es_parser,
+ TsSectionPes(std::unique_ptr<EsParser> es_parser,
TimestampUnroller* timestamp_unroller);
~TsSectionPes() override;
@@ -48,7 +49,7 @@ class TsSectionPes : public TsSection {
ByteQueue pes_byte_queue_;
// ES parser.
- scoped_ptr<EsParser> es_parser_;
+ std::unique_ptr<EsParser> es_parser_;
// Do not start parsing before getting a unit start indicator.
bool wait_for_pusi_;

Powered by Google App Engine
This is Rietveld 408576698