[FFmpeg-cvslog] r11044 - trunk/libavformat/avio.c
    alex 
    subversion
       
    Fri Nov 16 01:14:49 CET 2007
    
    
  
Author: alex
Date: Fri Nov 16 01:14:48 2007
New Revision: 11044
Log:
Call prot->url_close only if it is present.
Modified:
   trunk/libavformat/avio.c
Modified: trunk/libavformat/avio.c
==============================================================================
--- trunk/libavformat/avio.c	(original)
+++ trunk/libavformat/avio.c	Fri Nov 16 01:14:48 2007
@@ -132,10 +132,11 @@ offset_t url_seek(URLContext *h, offset_
 
 int url_close(URLContext *h)
 {
-    int ret;
+    int ret = 0;
     if (!h) return 0; /* can happen when url_open fails */
 
-    ret = h->prot->url_close(h);
+    if (h->prot->url_close)
+        ret = h->prot->url_close(h);
     av_free(h);
     return ret;
 }
    
    
More information about the ffmpeg-cvslog
mailing list