Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 621 of file acmstream.c.
{ IAVIStreamImpl *This = impl_from_IAVIStream(iface); TRACE("(%p,%d,%d)\n", iface, start, samples); /* check parameters */ if (start < 0 || samples < 0) return AVIERR_BADPARAM; /* Delete before start of stream? */ if ((DWORD)(start + samples) < This->sInfo.dwStart) return AVIERR_OK; /* Delete after end of stream? */ if ((DWORD)start > This->sInfo.dwLength) return AVIERR_OK; /* For the rest we need write capability */ if ((This->sInfo.dwCaps & AVIFILECAPS_CANWRITE) == 0) return AVIERR_READONLY; /* A compressor is also necessary */ if (This->has == NULL) return AVIERR_NOCOMPRESSOR; /* map our positions to pStream positions */ CONVERT_THIS_to_STREAM(&start); CONVERT_THIS_to_STREAM(&samples); return IAVIStream_Delete(This->pStream, start, samples); }