Retaining NULL makes no sense
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 5 Oct 2009 18:58:34 +0000 (21:58 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 5 Oct 2009 18:58:34 +0000 (21:58 +0300)
src/control/media.c

index 2c92af0..9a893b0 100644 (file)
@@ -413,9 +413,7 @@ void libvlc_media_release( libvlc_media_t *p_md )
  **************************************************************************/
 void libvlc_media_retain( libvlc_media_t *p_md )
 {
-    if (!p_md)
-        return;
-
+    assert (p_md);
     p_md->i_refcount++;
 }