Commits

zeroth  committed 0da6685

Fixed lots of warnings that gcc was giving.

  • Participants
  • Parent commits 62a1d67
  • Branches tylerthemovie

Comments (0)

Files changed (1)

File src/_gmovie.c

         break;
     }
 
-    if(is->ob_refcnt!=0)Py_DECREF( is);
+    if(is->ob_refcnt!=0){
+    	Py_DECREF( is);}
 }
 
 
     Py_INCREF(is);
 	AVFormatContext *ic;
     int err, i, ret, video_index, audio_index, subtitle_index;
-    AVPacket pkt1, *pkt = &pkt1;
     AVFormatParameters params, *ap = &params;
     
 	is->overlay=1;
 	if(ret!=0)
 	{
 		//throw python error
-		PyObject *er;
-		er=PyErr_Occurred();
-		if(er)
+		if(PyErr_Occurred())
+		{
 			PyErr_Print();
+		}
 		Py_DECREF(is);
-		Py_RETURN_NONE;
+		return is;
 	}
 
 	Py_DECREF(is);
 {
     Py_INCREF( is);
     AVFormatContext *ic;
-    int err, i, ret, video_index, audio_index, subtitle_index;
+    int ret;
     AVPacket pkt1, *pkt = &pkt1;
-    AVFormatParameters params, *ap = &params;
 
 	ic=is->ic;
 	int co=0;
 	        ret = av_read_frame(ic, pkt);
 	        if (ret < 0) {
 	            if (ret != AVERROR_EOF && url_ferror(ic->pb) == 0) {
-	                SDL_Delay(100); /* wait for user event */
+	                goto fail;
 	                continue;
 	            } else
 	            {