diff --git a/src/media/ros/ros_reader.cpp b/src/media/ros/ros_reader.cpp index 299b233f1f..b98d2ec5e8 100644 --- a/src/media/ros/ros_reader.cpp +++ b/src/media/ros/ros_reader.cpp @@ -520,7 +520,7 @@ namespace librealsense data[2] = static_cast(msg->angular_velocity.z); LOG_DEBUG("RS2_STREAM_GYRO " << motion_frame); } - if (stream_id.stream_type == RS2_STREAM_MOTION) + else if (stream_id.stream_type == RS2_STREAM_MOTION) { auto data = reinterpret_cast(motion_frame->data.data()); // orientation part