Commits

Anonymous committed abea4c5

Updates.

Comments (0)

Files changed (3)

         Dependency('SCRAP', '', 'libX11', ['X11']),
         Dependency('PORTMIDI', 'portmidi.h', 'libportmidi.so', ['portmidi']),
         Dependency('PORTTIME', 'porttime.h', 'libporttime.so', ['porttime']),
-        Dependency('FFMPEG', 'libavformat/avformat.h', 'libavformat.so', ['avformat', 'avdevice', 'avcodec',  'avutil', 'swscale']),        
+        Dependency('FFMPEG', 'libavformat/avformat.h', 'libavformat.a', ['avformat', 'avdevice', 'avcodec',  'avutil', 'swscale']),        
         #Dependency('FFMPEG', 'ffmpeg/avformat.h',  'libavformat.so', ['avformat']) ,
         #Dependency('FFMPEG', 'ffmpeg/avstring.h',  'libavstring.so', ['avstring']) ,
         #Dependency('FFMPEG', 'ffmpeg/swscale.h',  'libswscale.so', ['swscale']) ,
 
 static void _dealloc_aud_stream(PyAudioStream *pas)
 {
+    
     PyMem_Free((void *)pas);
 }
 
 static void _dealloc_vid_stream(PyVideoStream *pvs)
 {
+    if(!pvs)
+        return;
+    if(pvs->out_surf)
+    { 
+        SDL_FreeSurface(pvs->out_surf);
+        pvs->out_surf=NULL;
+    }
+    if(pvs->bmp)
+    {
+        SDL_FreeYUVOverlay(pvs->bmp);
+        pvs->bmp=NULL;
+    }
     PyMem_Free((void *) pvs);
 }
 
 static void _dealloc_vid_stream(PyVideoStream *pvs);
 static void _dealloc_sub_stream(PySubtitleStream *pss);
 
+/* stream python stuff 
 
+static PyObject* _vid_stream_new_internal(PyTypeObject *type, char *filename, PyObject* surface); //expects file to have been opened in _vid_stream_new
+static PyObject* _vid_stream_new (PyTypeObject *type, PyObject *args,
+    PyObject *kwds);
+static void _vid_stream_dealloc (PyVideoStream *video);
+static PyObject* _vid_stream_repr (PyVideoStream *video);
+static PyObject* _vid_stream_str (PyVideoStream *video);
+static PyObject* _vid_stream_play(PyVideoStream *video, PyObject* args);
+static PyObject* _vid_stream_stop(PyVideoStream *video);
+static PyObject* _vid_stream_pause(PyVideoStream *video);
+static PyObject* _vid_stream_rewind(PyVideoStream *video, PyObject* args);
+*/
+