Video Capture PipeWire: initialize pw_stream raw pointer member
We will not always initialize PipeWire stream when we fail early and in such case we will end up cleaning VideoCaptureModulePipeWire instance where we will attempt to free it even when it is not initialized. Bug: chromium:1457131 Change-Id: Id78310485aa5ae5d72c2d0d753dd5318b1b673ef Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/311261 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Jan Grulich <grulja@gmail.com> Cr-Commit-Position: refs/heads/main@{#40390}
This commit is contained in:
parent
7a35f108c7
commit
e21745a78b
@ -50,7 +50,7 @@ class VideoCaptureModulePipeWire : public VideoCaptureImpl {
|
||||
RTC_GUARDED_BY(capture_checker_);
|
||||
bool started_ RTC_GUARDED_BY(api_lock_);
|
||||
|
||||
struct pw_stream* stream_ RTC_GUARDED_BY(capture_checker_);
|
||||
struct pw_stream* stream_ RTC_GUARDED_BY(capture_checker_) = nullptr;
|
||||
struct spa_hook stream_listener_ RTC_GUARDED_BY(capture_checker_);
|
||||
};
|
||||
} // namespace videocapturemodule
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user