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

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

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.cc
diff --git a/media/formats/mp2t/ts_section_pes.cc b/media/formats/mp2t/ts_section_pes.cc
index bbfe030b75c14359e2ee9a43717973bfe9ca6a04..c0c9eb3dcc4ab0f91ee143c3ee603c22fc8d4756 100644
--- a/media/formats/mp2t/ts_section_pes.cc
+++ b/media/formats/mp2t/ts_section_pes.cc
@@ -4,6 +4,8 @@
#include "media/formats/mp2t/ts_section_pes.h"
+#include <memory>
+
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "media/base/bit_reader.h"
@@ -35,11 +37,11 @@ static int64_t ConvertTimestampSectionToTimestamp(int64_t timestamp_section) {
namespace media {
namespace mp2t {
-TsSectionPes::TsSectionPes(scoped_ptr<EsParser> es_parser,
+TsSectionPes::TsSectionPes(std::unique_ptr<EsParser> es_parser,
TimestampUnroller* timestamp_unroller)
- : es_parser_(es_parser.release()),
- wait_for_pusi_(true),
- timestamp_unroller_(timestamp_unroller) {
+ : es_parser_(es_parser.release()),
+ wait_for_pusi_(true),
+ timestamp_unroller_(timestamp_unroller) {
DCHECK(es_parser_);
DCHECK(timestamp_unroller_);
}

Powered by Google App Engine
This is Rietveld 408576698