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

Side by Side Diff: media/ffmpeg/file_protocol.cc

Issue 9317096: Fix media code to work with new ffmpeg. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes. Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/ffmpeg/file_protocol.h" 5 #include "media/ffmpeg/file_protocol.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <io.h> 10 #include <io.h>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 static int CloseContext(URLContext* h) { 72 static int CloseContext(URLContext* h) {
73 return HANDLE_EINTR(close(GetHandle(h))); 73 return HANDLE_EINTR(close(GetHandle(h)));
74 } 74 }
75 75
76 MSVC_POP_WARNING() 76 MSVC_POP_WARNING()
77 77
78 URLProtocol kFFmpegFileProtocol = { 78 URLProtocol kFFmpegFileProtocol = {
79 "file", 79 "file",
80 &OpenContext, 80 &OpenContext,
81 NULL, // url_open2
81 &ReadContext, 82 &ReadContext,
82 &WriteContext, 83 &WriteContext,
83 &SeekContext, 84 &SeekContext,
84 &CloseContext, 85 &CloseContext,
85 NULL, // *next 86 NULL, // *next
86 NULL, // url_read_pause 87 NULL, // url_read_pause
87 NULL, // url_read_seek 88 NULL, // url_read_seek
88 &GetHandle 89 &GetHandle
89 }; 90 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698