This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ void Stream::AttachAudioPlayer(AudioPlayerInterface& player) {
204
204
RTC_LOG (LS_INFO) << " Attached the stream to a renderer." ;
205
205
}
206
206
207
- #if defined(WEBRTC_WIN)
207
+ #if defined(WEBRTC_WIN) || defined(WEBRTC_LINUX)
208
208
void Stream::AttachVideoRenderer (VideoRendererInterface& renderer) {
209
209
if (media_stream_ == nullptr ) {
210
210
RTC_LOG (LS_ERROR) << " Cannot attach an audio only stream to a renderer." ;
Original file line number Diff line number Diff line change @@ -114,18 +114,19 @@ class Stream {
114
114
*/
115
115
virtual StreamSourceInfo Source () const ;
116
116
117
+ // / Attach the stream to an audio player that receives PCM data besides sending to
118
+ // / audio output device.
117
119
virtual void AttachAudioPlayer (AudioPlayerInterface& player);
118
120
119
121
#if defined(WEBRTC_LINUX)
122
+ // / Attach the stream to a Linux VA renderer.
123
+ virtual void AttachVideoRenderer (VideoRendererVaInterface& renderer);
124
+
125
+ #endif
126
+ #if defined(WEBRTC_WIN) || defined(WEBRTC_LINUX)
120
127
// / Attach the stream to a renderer to receive ARGB/I420 frames for local or
121
128
// / remote stream. Be noted if you turned hardware acceleration on, calling
122
129
// / this API on remote stream will have no effect.
123
- virtual void AttachVideoRenderer (VideoRendererVaInterface& renderer);
124
- // / Attach the stream to an audio player that receives PCM data besides sending to
125
- // / audio output device.
126
- #endif
127
- #if defined(WEBRTC_WIN)
128
- // / Attach the stream to a Linux VA renderer.
129
130
virtual void AttachVideoRenderer (VideoRendererInterface& renderer);
130
131
#endif
131
132
You can’t perform that action at this time.
0 commit comments