[vlc-commits] Remove assert() with side effects

Rémi Denis-Courmont git at videolan.org
Tue Aug 21 19:49:17 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 21 20:40:24 2012 +0300| [74efc8200b59852ea4b7c26516ba318beb1bd600] | committer: Rémi Denis-Courmont

Remove assert() with side effects

pl_Get() has side effects.

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

 src/playlist/engine.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 8ba3383..a7f8694 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -412,7 +412,6 @@ void set_current_status_node( playlist_t * p_playlist,
 
 static input_thread_t *playlist_FindInput( vlc_object_t *object )
 {
-    assert( object == VLC_OBJECT(pl_Get(object)) );
     return playlist_CurrentInput( (playlist_t *)object );
 }
 



More information about the vlc-commits mailing list