Skip to content

Commit

Permalink
fix PR IntelRealSense#12378 missing recordable< recommended-pbs >
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Nov 17, 2023
1 parent 08d9d37 commit 6f57bcf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/sensor.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.

#pragma once

#include "core/sensor-interface.h"
#include "core/recommended-proccesing-blocks-interface.h"

#include "source.h"
#include "core/extension.h"
Expand Down Expand Up @@ -51,6 +51,7 @@ namespace librealsense
, public virtual sensor_interface
, public options_container
, public virtual info_container
, public recordable< recommended_proccesing_blocks_interface >
{
public:
explicit sensor_base( std::string const & name, device * device );
Expand Down Expand Up @@ -86,6 +87,15 @@ namespace librealsense
return {};
}

// recordable< recommended_proccesing_blocks_interface > is needed to record our recommended processing blocks
public:
void enable_recording( std::function< void( const recommended_proccesing_blocks_interface & ) > ) override {}
void create_snapshot( std::shared_ptr< recommended_proccesing_blocks_interface > & snapshot ) const override
{
snapshot
= std::make_shared< recommended_proccesing_blocks_snapshot >( get_recommended_processing_blocks() );
}

protected:
// Since _profiles is private, we need a way to get the final profiles
stream_profiles const & initialized_profiles() const { return *_profiles; }
Expand Down

0 comments on commit 6f57bcf

Please sign in to comment.