Re: [Musicpd-dev-team] [PATCH 1/3] ffmpeg decoder plugin: refactor the decoding functions

2013-04-05 Thread Max Kellermann
On 2013/03/27 17:38, Anton Khirnov an...@khirnov.net wrote: Move some variables shared between multiple functions to a struct so the functions don't need too many parameters. Move initializing the decoder into a separate function to improve readability and reduce cleanup code duplication.

[Musicpd-dev-team] [PATCH 1/3] ffmpeg decoder plugin: refactor the decoding functions

2013-03-27 Thread Anton Khirnov
Move some variables shared between multiple functions to a struct so the functions don't need too many parameters. Move initializing the decoder into a separate function to improve readability and reduce cleanup code duplication. --- src/decoder/FfmpegDecoderPlugin.cxx | 205