[Vorbis] ov_open() vs. ov_test() failures

Michael Smith msmith at xiph.org
Fri Oct 21 03:28:33 PDT 2005


On 10/19/05, Robert Hui <legatek at gmail.com> wrote:
> Hi,
>
> Just wanted to clear up a minor ambiguity.  For ov_open(), on failure, the
> file needs to be closed by fclose() instead of ov_clear().
> Is this the same case on failure for ov_test(), or is ov_clear() used for
> both a success and failure with ov_test()?

You should use fclose() for this case, it works the same as ov_open().

Mike


More information about the Vorbis mailing list