Skip to content

Commit

Permalink
Merge pull request #6786 from mengyui/matlab-call-poll-for-frames
Browse files Browse the repository at this point in the history
Fix the return value of poll_for_frames in MATLAB wrapper
  • Loading branch information
ev-mp authored Jul 16, 2020
2 parents a9a19d0 + cb73679 commit f966c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wrappers/matlab/frame_queue.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function delete(this)
narginchk(2, 2);
% C++ function validates contents of type
validateattributes(type, {'char', 'string'}, {'scalartext'}, '', 'type', 2);
out = realsense.librealsense_mex('rs2::frame_queue', 'poll_for_frame', this.objectHandle, type)
[res, out] = realsense.librealsense_mex('rs2::frame_queue', 'poll_for_frame', this.objectHandle, type)
switch type
case 'frame'
frame = realsense.frame(out);
Expand Down
2 changes: 1 addition & 1 deletion wrappers/matlab/pipeline.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function stop(this)
frames = realsense.frameset(out);
end
function [res, frames] = poll_for_frames(this)
res, out = realsense.librealsense_mex('rs2::pipeline', 'poll_for_frames', this.objectHandle);
[res, out] = realsense.librealsense_mex('rs2::pipeline', 'poll_for_frames', this.objectHandle);
frames = realsense.frameset(out);
end
function profile = get_active_profile(this)
Expand Down

0 comments on commit f966c83

Please sign in to comment.