gstreamer: Split parsers for owned and borrowed views
When we have a view like Caps<&EventRef>
, we can return a CapsRef
borrowing from the wrapped EventRef
. This way, the CapsRef
we return
can outlive the view itself.
This is in contrast to a Caps<Event>
view which owns the Event
.
Here, the CapsRef
we return cannot outlive the view.
gstreamer-rs 0.18 consolidated code and treated everything like the latter case. Fix this by duplicating the accessors for each case.
Fixes: #367 (closed)