added a stream_UrlNew to open a general purpos stream_t from a url.
[vlc.git] / modules / demux / mp4 / libmp4.c
index f8b64d0..6becfbe 100644 (file)
@@ -1852,12 +1852,12 @@ static int MP4_ReadBox_cmov( stream_t *p_stream, MP4_Box_t *p_box )
     /* now create a memory stream */
     p_stream_memory =
         stream_MemoryNew( VLC_OBJECT(p_stream), p_cmvd->data.p_cmvd->p_data,
-                          p_cmvd->data.p_cmvd->i_uncompressed_size );
+                          p_cmvd->data.p_cmvd->i_uncompressed_size, VLC_TRUE );
 
     /* and read uncompressd moov */
     p_box->data.p_cmov->p_moov = MP4_ReadBox( p_stream_memory, NULL );
 
-    stream_MemoryDelete( p_stream_memory, VLC_FALSE );
+    stream_Delete( p_stream_memory );
 
 #ifdef MP4_VERBOSE
     msg_Dbg( p_stream, "read box: \"cmov\" compressed movie header completed");