[MPlayer-advusers] dumpstream: bails out on retriable errors

klchxbec klchxbec at yahoo.com
Thu Mar 6 04:59:42 CET 2008


With RC2, -dumpstream often fails for mms with :

read error:: Resource temporarily unavailable 

Or if I suspend/resume

read error:: Interrupted system call

I fixed this by changing stream/asf_mmst_streaming.c, 

static int get_data (int s, char *buf, size_t count)
{
  ssize_t  len;
  size_t total = 0;

  while (total < count) {

    len = recv (s, &buf[total], count-total, 0);

    if (len<=0) {
+      if (errno == EAGAIN || errno == EINTR)
+        continue;
      perror ("read error:");
      return 0;
    }

....

Please include this fix in your next release.



      5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html




More information about the MPlayer-advusers mailing list