Skip to content

Commit 4a2dfd9

Browse files
committed
Add missing comment about onNewFrame return value
Discussion in #353
1 parent 174269d commit 4a2dfd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/libfreenect2/frame_listener.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class LIBFREENECT2_API FrameListener
120120
* libfreenect2 calls this function when a new frame is decoded.
121121
* @param type Type of the new frame.
122122
* @param frame Data of the frame.
123+
* @return true if you want to take ownership of the frame, i.e. reuse/delete it. Will be reused/deleted by caller otherwise.
123124
*/
124125
virtual bool onNewFrame(Frame::Type type, Frame *frame) = 0;
125126
};

0 commit comments

Comments
 (0)