Duncan Webb wrote:
> /freevo/record/ricky_martin_-_Living_la_vida_loca.mpg
> |       type: MPEG-1 Video
> |      media: MEDIA_AV
> |       mime: video/mpeg
> |     length: -1

Hard to tell. Does it also happen when you only have the first 10 MB
of that file? If yes, please send it to me (not the list).

But the main problem is here:

|   def get_length(self):
|       """
|       get the length in seconds, return -1 if this is not possible
|       """
|       end = self.get_endpos()
|       if end == -1:
|           return -1
|       if self.start > end:
|           return int(((long(1) << 33) - 1 ) / 90000) - self.start + end
|       return end - self.start

I have no idea at all why get_endpos could return -1, this is only
some sort of fail check to prevent a crash.

But length == -1 is always bad, we should set it to None if we don't
know the length.


Dischi

-- 
Always remember you're unique, just like everyone else.

Attachment: pgpUADpc3TamD.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to