[vlc-commits] fingerprinter: remove useless checks

Rémi Denis-Courmont git at videolan.org
Wed Jul 8 20:16:30 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul  8 19:35:57 2015 +0300| [95d8b1b8bf084ffe277ef8f8391f0529849d0e9f] | committer: Rémi Denis-Courmont

fingerprinter: remove useless checks

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

 modules/misc/fingerprinter.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/misc/fingerprinter.c b/modules/misc/fingerprinter.c
index 6c2ced3..07d8b75 100644
--- a/modules/misc/fingerprinter.c
+++ b/modules/misc/fingerprinter.c
@@ -343,8 +343,7 @@ static void cancelRun( void * p_arg )
     fingerprinter_sys_t *p_sys = ( fingerprinter_sys_t * ) p_arg;
     if ( vlc_array_count( p_sys->processing.queue ) )
         vlc_array_clear( p_sys->processing.queue );
-    if ( p_sys->psz_uri )
-        free( p_sys->psz_uri );
+    free( p_sys->psz_uri );
 }
 
 static void clearPrint( void * p_arg )
@@ -354,8 +353,7 @@ static void clearPrint( void * p_arg )
         free_acoustid_result_t( &acoustid_print->results.p_results[j] );
     if ( acoustid_print->results.count )
         free( acoustid_print->results.p_results );
-    if ( acoustid_print->psz_fingerprint )
-        free( acoustid_print->psz_fingerprint );
+    free( acoustid_print->psz_fingerprint );
 }
 
 static void Run( fingerprinter_thread_t *p_fingerprinter )



More information about the vlc-commits mailing list