]> granicus.if.org Git - rtmpdump/commitdiff
Fix audio resume bug
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Thu, 11 Feb 2010 09:52:39 +0000 (09:52 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Thu, 11 Feb 2010 09:52:39 +0000 (09:52 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@247 400ebc74-4327-4243-bc38-086b20814532

rtmpdump.c

index 731ef03141035f838a5cdff49edbbdaf47262fad..1e89b68df9247ee5fe816847c9f19b5027547e6b 100644 (file)
@@ -1034,6 +1034,8 @@ Download(RTMP * rtmp,             // connected RTMP object
       //Log(LOGDEBUG, "Writing data type: %02X", dataType);
       fseek(file, 4, SEEK_SET);
       fwrite(&dataType, sizeof(unsigned char), 1, file);
+      /* resume uses ftell to see where we left off */
+      fseek(file, 0, SEEK_END);
     }
 
   if (nRead == -3)