Fix trivial bug where encoder index wasn't set leading to crashes
and/or stray encoder index values which caused streaming parameters
to not be set.