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

Unified Diff: ppapi/cpp/video_reader.cc

Issue 13726021: Change PPB_VideoWriter Open function to return stream_id as out param. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ppapi/cpp/video_reader.h ('k') | ppapi/cpp/video_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/video_reader.cc
diff --git a/ppapi/cpp/video_reader.cc b/ppapi/cpp/video_reader.cc
index ac7fe79adf7daf04db30ecae4d5fce54c0165c4f..9ae83bbd662539b33d95af66e541959fad7f91f4 100644
--- a/ppapi/cpp/video_reader.cc
+++ b/ppapi/cpp/video_reader.cc
@@ -42,14 +42,13 @@ VideoReader::VideoReader(PassRef, PP_Resource resource)
: Resource(PASS_REF, resource) {
}
-int32_t VideoReader::Open(const std::string& stream_id,
+int32_t VideoReader::Open(const Var& stream_id,
const CompletionCallback& cc) {
if (has_interface<PPB_VideoReader_0_1>()) {
- Var id(stream_id);
int32_t result =
get_interface<PPB_VideoReader_0_1>()->Open(
pp_resource(),
- id.pp_var(), cc.pp_completion_callback());
+ stream_id.pp_var(), cc.pp_completion_callback());
return result;
}
return cc.MayForce(PP_ERROR_NOINTERFACE);
« no previous file with comments | « ppapi/cpp/video_reader.h ('k') | ppapi/cpp/video_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698