OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |