Skip to main content

Recording files not getting deleted in default M.S.V !!

3 replies [Last post]
svikrant
Offline
Joined: 2011-02-09
Points: 0

Hi All,
When we initiate the delete operation on recordingRequest . It initiates a call to mpeos layer's mpeos_dvrRecordingDelete() . In this method there is call to ri_delete_recording() which does nothing except logging. Later on in fileDelete is triggered from filesystem module. Which based on the OS(linux/windows) calls the respective api's unlink()/_wunlik() to remove the link from the recording file.
Seeing the comments from the methods it looks like we are going to delete the files from the filesysytem. Are we expecting the file to be deleted here ?
If yes : When we call MediaStorageVolumeImpl.delete(): Why is that we are explicitly deleting the files by calling LSV.deleteFiles(), which calls file.delete()?
Observation/Issue : While the recording files are getting deleted in the second case (MSV delete), the recording files remain undeleted from the file system in the first case (recordingReq.delete()).
Is it the expected behaviour ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
greg80303
Offline
Joined: 2008-07-03
Points: 0

Let me address the first question:

There are actually 3 files that are created for a recording -- a metadata file which is maintained by our MPEOS code, a media file which is maintained by the PC Platform, and an index file which is maintained by the PC Platform. The metadata file is used keep track of basic recording info (length, pids, current playback position, etc). The media file contains the actual MPEG stream and the index file is used to perform trick modes. When mpeos_dvrRecordingDelete() is called, ri_delete_recording() is supposed to delete the media and index file, while the mpe_fileDelete() call at the bottom of the function deletes the metadata file. It looks like ri_delete_recording() hasn't been implemented yet.

G

svikrant
Offline
Joined: 2011-02-09
Points: 0

Hi Greg,
Thanks for your input.
So should ri_delete_recording() be implemented to delete the media and index files ?
If this is implemeted,then i think we don't need separate call to LSV.deleteFiles() to delete the files. Correct ?

greg80303
Offline
Joined: 2008-07-03
Points: 0

Yes, ri_delete_recording() still needs to be implemented. We just haven't had time to do it yet.

You may be correct about not needing a separate call to LSV.deleteFiles(). We will take a look at this.

G