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

Side by Side Diff: media/base/android/demuxer_stream_player_params.cc

Issue 15898002: Fix various MediaSource related crashes on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make Destroy() public and remove friend decl to make compiler happy Created 7 years, 7 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
« no previous file with comments | « no previous file | media/base/android/media_source_player.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/base/android/demuxer_stream_player_params.h" 5 #include "media/base/android/demuxer_stream_player_params.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 MediaPlayerHostMsg_DemuxerReady_Params:: 9 MediaPlayerHostMsg_DemuxerReady_Params::
10 MediaPlayerHostMsg_DemuxerReady_Params() 10 MediaPlayerHostMsg_DemuxerReady_Params()
11 : audio_channels(0), 11 : audio_codec(kUnknownAudioCodec),
12 audio_channels(0),
12 audio_sampling_rate(0), 13 audio_sampling_rate(0),
13 is_audio_encrypted(false), 14 is_audio_encrypted(false),
15 video_codec(kUnknownVideoCodec),
14 is_video_encrypted(false), 16 is_video_encrypted(false),
15 duration_ms(0) {} 17 duration_ms(0) {}
16 18
17 MediaPlayerHostMsg_DemuxerReady_Params:: 19 MediaPlayerHostMsg_DemuxerReady_Params::
18 ~MediaPlayerHostMsg_DemuxerReady_Params() {} 20 ~MediaPlayerHostMsg_DemuxerReady_Params() {}
19 21
20 MediaPlayerHostMsg_ReadFromDemuxerAck_Params:: 22 MediaPlayerHostMsg_ReadFromDemuxerAck_Params::
21 MediaPlayerHostMsg_ReadFromDemuxerAck_Params() 23 MediaPlayerHostMsg_ReadFromDemuxerAck_Params()
22 : type(DemuxerStream::UNKNOWN) {} 24 : type(DemuxerStream::UNKNOWN) {}
23 25
24 MediaPlayerHostMsg_ReadFromDemuxerAck_Params:: 26 MediaPlayerHostMsg_ReadFromDemuxerAck_Params::
25 ~MediaPlayerHostMsg_ReadFromDemuxerAck_Params() {} 27 ~MediaPlayerHostMsg_ReadFromDemuxerAck_Params() {}
26 28
27 MediaPlayerHostMsg_ReadFromDemuxerAck_Params::AccessUnit::AccessUnit() 29 MediaPlayerHostMsg_ReadFromDemuxerAck_Params::AccessUnit::AccessUnit()
28 : end_of_stream(false) {} 30 : end_of_stream(false) {}
29 31
30 MediaPlayerHostMsg_ReadFromDemuxerAck_Params::AccessUnit::~AccessUnit() {} 32 MediaPlayerHostMsg_ReadFromDemuxerAck_Params::AccessUnit::~AccessUnit() {}
31 33
32 } // namespace media 34 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/base/android/media_source_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698