flimflam wrote: 
> Yes, it is variable. On Demand very often fails within the first minute,
> but it can sometimes last 2 mins, 4 mins, 10 mins before stopping. 
> 
> Attached is a log where it played for about 4 mins. The same thing
> happens for all of them:
> 
> 

I can't tell how the line where it goes wrong arises:

Code:
--------------------
    
  [15-04-27 22:09:35.5392] Slim::Player::Source::_readNextChunk (346) readlen 
undef: (Invalid argument) 22
  
--------------------

To get that, the sysread function in HLS.pm would have had to have
returned an undefined length with an error code EINVAL (22 - Invalid
Argument).
Looking at the code for sysread in HLS.pm, there are a couple of places
where it returns 0 (on detecting an error), then all paths fall into the
bit of code at the end:

Code:
--------------------
    
  ...
        return $ret if $ret;
  
        # otherwise come back later - use EINTR as we don't have a file handle 
to put on select
        $! = EINTR;
        return undef;
  
--------------------

Unless I am mistaken (I'm still learning with perl), this means the only
way that an undefined length can be returned is with the error code set
to EINTR (4). This is the normal way that zero data is signified, and is
seen to happen in log lines like this:

Code:
--------------------
    
  [15-04-27 22:06:43.9341] Slim::Player::Source::_readNextChunk (340) Got 
EINTR, will try again later.
  
--------------------


Ah, on second thoughts, this error probably means that there is
something wrong with the call to sysread in Player::Source.pm:

Code:
--------------------
    
        if ($fd) {
  
                if ($chunksize > 0) {
  
                        my $readlen = $fd->sysread($chunk, $chunksize);
  
--------------------


So I think that probably means that $fd->sysread doesn't exist, or set
to something that isn't the sysread function from HLS.pm. I really
haven't any idea how that might have happened - it probably needs more
sophisticated debugging to find out, and I'm not sure how to go about
that.


------------------------------------------------------------------------
utgg's Profile: http://forums.slimdevices.com/member.php?userid=40900
View this thread: http://forums.slimdevices.com/showthread.php?t=53229

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to