OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 | 112 |
113 void WebMediaStreamTrack::setExtraData(ExtraData* extraData) | 113 void WebMediaStreamTrack::setExtraData(ExtraData* extraData) |
114 { | 114 { |
115 ASSERT(!m_private.isNull()); | 115 ASSERT(!m_private.isNull()); |
116 | 116 |
117 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData))
)); | 117 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData))
)); |
118 } | 118 } |
119 | 119 |
120 void WebMediaStreamTrack::setSourceProvider(WebAudioSourceProvider* provider) | 120 void WebMediaStreamTrack::setSourceProvider(WebAudioSourceProvider* provider) |
121 { | 121 { ASSERT(!m_private.isNull()); |
122 #if ENABLE(WEB_AUDIO) | |
123 ASSERT(!m_private.isNull()); | |
124 m_private->setSourceProvider(provider); | 122 m_private->setSourceProvider(provider); |
125 #endif // ENABLE(WEB_AUDIO) | |
126 } | 123 } |
127 | 124 |
128 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) | 125 void WebMediaStreamTrack::assign(const WebMediaStreamTrack& other) |
129 { | 126 { |
130 m_private = other.m_private; | 127 m_private = other.m_private; |
131 } | 128 } |
132 | 129 |
133 } // namespace blink | 130 } // namespace blink |
OLD | NEW |