[vlc-commits] input: add an assertion

Rémi Denis-Courmont git at videolan.org
Sun Jun 7 21:43:50 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun  6 21:19:05 2015 +0300| [54776b96be484b9c6854c60241a7d6bf2fc00221] | committer: Rémi Denis-Courmont

input: add an assertion

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

 src/input/input.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input/input.c b/src/input/input.c
index fc15b7a..4c073bb 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -220,6 +220,7 @@ int input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
  */
 int input_Start( input_thread_t *p_input )
 {
+    assert( !p_input->p->is_running );
     /* Create thread and wait for its readiness. */
     p_input->p->is_running = !vlc_clone( &p_input->p->thread,
                                          Run, p_input, VLC_THREAD_PRIORITY_INPUT );



More information about the vlc-commits mailing list