Skip to content

Codecs: should -openReturningError: be idempotent? #574

@jlama

Description

@jlama

I noticed that the -openReturningError: method in decoders and encoders does not check if it's already open. This can lead to weird behavior as this method does not properly reset all the state for some codecs. For example _framePosition in the FLAC & MPEG decoders is not reset to 0.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions