summaryrefslogtreecommitdiff
path: root/avstream/avscamera/sys/Sensor.cpp
diff options
context:
space:
mode:
authorJoel Corley <[email protected]>2018-06-29 19:19:18 -0700
committerJoel Corley <[email protected]>2018-06-29 19:19:18 -0700
commit30ddbb997660fa4ae3608759b9d2d0789774ccdc (patch)
treed656c50cea303cb554460d529038fe5364634b01 /avstream/avscamera/sys/Sensor.cpp
parent6c1981b8504329521343ad00f32daa847fa6083a (diff)
Update AVStream / Camera samples for RS4.
Diffstat (limited to 'avstream/avscamera/sys/Sensor.cpp')
-rw-r--r--avstream/avscamera/sys/Sensor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/avstream/avscamera/sys/Sensor.cpp b/avstream/avscamera/sys/Sensor.cpp
index 97615250..9215f6b6 100644
--- a/avstream/avscamera/sys/Sensor.cpp
+++ b/avstream/avscamera/sys/Sensor.cpp
@@ -1090,14 +1090,16 @@ void
CSensor::
SetSynthesizerAttribute(
CSynthesizer::Attribute Attrib,
- LONGLONG Info
+ LONGLONG Info,
+ LONG PinId
)
{
PAGED_CODE();
for( ULONG Pin=0; IsValidIndex(Pin); Pin++ )
{
- if( m_Synthesizer[Pin] )
+ if( (Pin==(ULONG)PinId || IsStillIndex(Pin)) &&
+ m_Synthesizer[Pin] )
{
m_Synthesizer[Pin]->Set( Attrib, Info );
}