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

Side by Side Diff: media/tools/mfplayer/mfplayer.cc

Issue 6816024: Revert 80819 due to failed tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/tools/mfplayer/mf_playback_main.cc ('k') | sandbox/src/Wow64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:eol-style
- LF
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/tools/mfplayer/mfplayer.h" 5 #include "media/tools/mfplayer/mfplayer.h"
6 6
7 #include <mfapi.h> 7 #include <mfapi.h>
8 #include <mferror.h> 8 #include <mferror.h>
9 #include <shlwapi.h> 9 #include <shlwapi.h>
10 #include <strsafe.h>
10 11
11 #include <cassert> 12 #include <cassert>
12 #include <cstdio>
13 13
14 template <class T> 14 template <class T>
15 static void SafeRelease(T** pptr) { 15 static void SafeRelease(T** pptr) {
16 if (pptr && *pptr) { 16 if (pptr && *pptr) {
17 (*pptr)->Release(); 17 (*pptr)->Release();
18 *pptr = NULL; 18 *pptr = NULL;
19 } 19 }
20 } 20 }
21 21
22 static HRESULT ProbeTopology(IMFMediaEvent* event, 22 static HRESULT ProbeTopology(IMFMediaEvent* event,
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 if (FAILED(hr)) 814 if (FAILED(hr))
815 break; 815 break;
816 SafeRelease(&event); 816 SafeRelease(&event);
817 } 817 }
818 // Release the last MESessionClosed event. 818 // Release the last MESessionClosed event.
819 SafeRelease(&event); 819 SafeRelease(&event);
820 return SUCCEEDED(hr); 820 return SUCCEEDED(hr);
821 } 821 }
822 822
823 } // namespace mfplayer 823 } // namespace mfplayer
OLDNEW
« no previous file with comments | « media/tools/mfplayer/mf_playback_main.cc ('k') | sandbox/src/Wow64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698