Commits

Anonymous committed e702430

Made loops argument work like the loops argument for Sound

Comments (0)

Files changed (2)

 	Py_INCREF(movie);
 	RELEASEGIL
 	int state=0;
-	movie->loops--;
-	while((movie->loops!=-1) && state==0)
+	int eternity =0;
+	if(movie->loops==-1)
+	{
+		eternity=1;
+	}
+	while((movie->loops>-1||eternity) )
 	{
 		GRABGIL
 		PySys_WriteStdout("Loops: %i\n", movie->loops);
     movie->paused = 0;
     movie->playing = 1;
     SDL_UnlockMutex(movie->dest_mutex);
+    if(gstate==PyGILState_LOCKED) RELEASEGIL	
 	movie->parse_tid = SDL_CreateThread(decoder_wrapper, movie);
     GRABGIL
     Py_DECREF(movie);