Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 516 of file avifile.c.
{ IAVIFileImpl *This = (IAVIFileImpl *)iface; ULONG nStream; TRACE("(%p,0x%08X,%d)\n", iface, fccType, lParam); /* check parameter */ if (lParam < 0) return AVIERR_BADPARAM; /* Have user write permissions? */ if ((This->uMode & MMIO_RWMODE) == 0) return AVIERR_READONLY; nStream = AVIFILE_SearchStream(This, fccType, lParam); /* Does the requested stream exist? */ if (nStream < This->fInfo.dwStreams && This->ppStreams[nStream] != NULL) { /* ... so delete it now */ HeapFree(GetProcessHeap(), 0, This->ppStreams[nStream]); if (This->fInfo.dwStreams - nStream > 0) memcpy(This->ppStreams + nStream, This->ppStreams + nStream + 1, (This->fInfo.dwStreams - nStream) * sizeof(IAVIStreamImpl*)); This->ppStreams[This->fInfo.dwStreams] = NULL; This->fInfo.dwStreams--; This->fDirty = TRUE; /* This->fInfo will be updated further when asked for */ return AVIERR_OK; } else return AVIERR_NODATA; }