Skip to content

Commit

Permalink
Fix output_port reference in video encoder
Browse files Browse the repository at this point in the history
Many thanks to Richard on Twitter for spotting it!
  • Loading branch information
waveform80 committed May 23, 2016
1 parent 38bc194 commit 211ac04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picamera/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def _create_encoder(
# the split method below. If one is not set explicitly, query the
# encoder's default
if intra_period is not None:
self._output_port.params[mmal.MMAL_PARAMETER_INTRAPERIOD] = intra_period
self.output_port.params[mmal.MMAL_PARAMETER_INTRAPERIOD] = intra_period
self._intra_period = intra_period
else:
self._intra_period = self.output_port.params[mmal.MMAL_PARAMETER_INTRAPERIOD]
Expand Down

0 comments on commit 211ac04

Please sign in to comment.