Displaying 2 results from an estimated 2 matches for "_ov_open2".
Did you mean:
_ov_open
2004 Sep 07
3
Introducing ov_open_callbacksp and ov_clearp
...e.c:
EXPORT_C int ov_open_callbacksp(void *f,OggVorbis_File **vf,char
*initial,long ibytes,
ov_callbacks callbacks){
int ret;
if (vf==NULL) return -1;
*vf=_ogg_malloc(sizeof(OggVorbis_File));
if (*vf==NULL) return -1;
ret=_ov_open1(f,*vf,initial,ibytes,callbacks);
if(ret!=0 || (ret=_ov_open2(*vf)) != 0)
{
ov_clearp(*vf);
*vf = NULL;
return ret;
}
return 0;
}
EXPORT_C int ov_clearp(OggVorbis_File *vf){
ov_clear(vf);
if (vf)
_ogg_free(vf);
return 0;
}
EXPORT_C int ov_info_basic(OggVorbis_File *vf,int link, int *channels, long
*rate)
{
vorbis_info *vi = ov_info(vf...
2002 Jul 23
1
[BUG] libvorbisfile ov_test() ?
...ready_state);
ov_clear(&vf);
return(0);
}
}
<p><p>Maybe i wrong understand docs and idea of ov_test() / ov_test_open() ?
Src of ov_test_open:
int ov_test_open(OggVorbis_File *vf){
if(vf->ready_state!=PARTOPEN)return(OV_EINVAL);
return _ov_open2(vf);
}
It returns OV_EINVAL when i run upper example:
# ./a.out
fail in ov_test_open(), reason: -131
vf.ready_state is: 3
When i use ov_open directly, it works.
--
Mariusz Gniazdowski.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/...