tagpy

Andreas Klöckner lists at informa.tiker.net
Tue Jun 27 05:59:31 CEST 2006


Hi Damien,

On Monday 19 June 2006 20:57, you wrote:
> By the way, is this intended behaviour?
>
> >>> import tagpy
> >>> t = tagpy.FileRef("notafile")
> >>> t.file()
> >>> t.isNull()
>
> True
>
> >>> t.tag()
>
> zsh: segmentation fault  python

This is, in fact, not TagPy's fault. 

Quoting from fileref.cpp (also in SVN):
8< -------------------------------------
Tag *FileRef::tag() const
{
  return d->file->tag();
}
8< -------------------------------------

This might or might not need fixing. I think that it'd be safer to return NULL 
just to keep people from hurting themselves. Likewise for audioProperties. 
Scott?

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20060626/0d535810/attachment.pgp 


More information about the taglib-devel mailing list