mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
a7c2aa473f
Weak refs don't quite work here correctly as there is always a race with taking the lock between find_view() and remove_view(). If find_view() returns a view that is going to removed by remove_view() then we have an interesting situation. In theory, the number and type of views for an image are relatively constant and should not change one they've been set up which means that it is actually practical to perform pool-like reference counting here where the image holds a pool of different views that it can give out as necessary. |
||
---|---|---|
.. | ||
gst | ||
meson.build |