Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame pointer ownership? #16

Closed
floe opened this issue Jan 28, 2016 · 2 comments
Closed

Frame pointer ownership? #16

floe opened this issue Jan 28, 2016 · 2 comments
Labels

Comments

@floe
Copy link
Contributor

floe commented Jan 28, 2016

What's the policy regarding the frame data pointer returned from rs_get_frame_data @ https://github.com/IntelRealSense/librealsense/blob/master/include/librealsense/rs.h#L390 ?
I.e., how long is it valid, who will delete it, ... ?

@sgorsten
Copy link
Contributor

The data returned by rs_get_frame_data, as well as rs_get_frame_timestamp, is valid until the next call to rs_wait_for_frames, or until rs_stop_device is called or the context itself is destroyed with rs_delete_context.

@floe
Copy link
Contributor Author

floe commented Jan 29, 2016

Thanks - perhaps a bit of background: I'm passing the buffers on to GStreamer, which then basically takes ownership of the pointer and would, at some point, try to free them again. Since I'll have to process the data anyway, I will probably just write it to a newly allocated buffer which GStreamer can then manage on its own.

dorodnic added a commit that referenced this issue Aug 21, 2017
Renaming, order and documentation
dorodnic pushed a commit to dorodnic/librealsense that referenced this issue Aug 14, 2018
…port

Revert "Adding faster device_watcher"
ev-mp pushed a commit to ev-mp/librealsense that referenced this issue Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants