mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
Fix locking and threadsafety
Emit all notify in the context thread. Handle error cases better. Make sure we hold the lock when running the mainloop, this will cause all of the signals to be emited with the lock. Make sure we call all methods with the lock.
This commit is contained in:
parent
83223f0a83
commit
b68b62740c
7 changed files with 153 additions and 63 deletions
|
|
@ -65,6 +65,7 @@ struct _GstPulsevideoSrc {
|
|||
PvStream *stream;
|
||||
GstAllocator *fd_allocator;
|
||||
|
||||
GPollFunc poll_func;
|
||||
GMutex lock;
|
||||
GCond cond;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue