<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><span style="font-family:arial,sans-serif;font-size:13px">It doesn't seem like there's a way to dynamically resize buffers without losing data because in the afterGettingFunc if fNumTruncatedBytes > 0 you've already lost the data.</span></blockquote><div><br></div>That's correct.</div><div><br></div><div><blockquote type="cite"><div style="font-family:arial,sans-serif;font-size:13px">So with that in mind I created a patch that I'm hoping may get incorporated in a future release.</div></blockquote><div><br></div>No, because the choice of how to handle the 'truncated data' situation is best left up to the receiver. As you noted, the data has been lost, but the receiver *may* then choose to allocate a larger-sized to use in subsequent calls to "getNextFrame()" (e.g., VLC does this), or it might not.</div><div><br></div><div>In any case, we're not going to change the signature to "getNextFrame()", because it's used throughout the code - not just in the couple of places you noted.</div><div><br></div><div>(It's possible that we'll completely change the way we handle buffers in some future revision of the software, but if that ever happens, it'll be a major, non-backwards-compatible revision.)</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>