[vlc-devel] commit: mkv: Remove an unneeded test. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Aug 1 01:02:32 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri Aug  1 01:05:06 2008 +0200| [61c5ccdf303006a25fda9a60fffd8b91093a0b49] | committer: Pierre d'Herbemont 

mkv: Remove an unneeded test.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61c5ccdf303006a25fda9a60fffd8b91093a0b49
---

 modules/demux/mkv.cpp |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/demux/mkv.cpp b/modules/demux/mkv.cpp
index 70a55b6..39408e7 100644
--- a/modules/demux/mkv.cpp
+++ b/modules/demux/mkv.cpp
@@ -1051,10 +1051,7 @@ public:
     {
         for( size_t i_track = 0; i_track < tracks.size(); i_track++ )
         {
-            if ( tracks[i_track]->p_compression_data )
-            {
-                delete tracks[i_track]->p_compression_data;
-            }
+            delete tracks[i_track]->p_compression_data;
             es_format_Clean( &tracks[i_track]->fmt );
             free( tracks[i_track]->p_extra_data );
             free( tracks[i_track]->psz_codec );




More information about the vlc-devel mailing list