added a stream_UrlNew to open a general purpos stream_t from a url.
[vlc.git] / modules / demux / mkv.cpp
index 25720b7..964c6cc 100644 (file)
@@ -1334,7 +1334,8 @@ bool matroska_segment_t::Select( mtime_t i_start_time )
             MP4_Box_t *p_box = (MP4_Box_t*)malloc( sizeof( MP4_Box_t ) );
             stream_t *p_mp4_stream = stream_MemoryNew( VLC_OBJECT(&sys.demuxer),
                                                        tk->p_extra_data,
-                                                       tk->i_extra_data );
+                                                       tk->i_extra_data,
+                                                       VLC_FALSE );
             MP4_ReadBoxCommon( p_mp4_stream, p_box );
             MP4_ReadBox_sample_vide( p_mp4_stream, p_box );
             tk->fmt.i_codec = p_box->i_type;
@@ -1344,7 +1345,7 @@ bool matroska_segment_t::Select( mtime_t i_start_time )
             tk->fmt.p_extra = malloc( tk->fmt.i_extra );
             memcpy( tk->fmt.p_extra, p_box->data.p_sample_vide->p_qt_image_description, tk->fmt.i_extra );
             MP4_FreeBox_sample_vide( p_box );
-            stream_MemoryDelete( p_mp4_stream, VLC_TRUE );
+            stream_Delete( p_mp4_stream );
         }
         else if( !strcmp( tk->psz_codec, "A_MS/ACM" ) )
         {