Fixed es_format_Clean (when called multiple times with the same es_format).
authorLaurent Aimar <fenrir@videolan.org>
Thu, 1 Mar 2007 23:01:59 +0000 (23:01 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 1 Mar 2007 23:01:59 +0000 (23:01 +0000)
include/vlc_es.h

index ba78dec..424313a 100644 (file)
@@ -294,5 +294,7 @@ static inline void es_format_Clean( es_format_t *fmt )
         }
         free(fmt->p_extra_languages);
     }
+    fmt->i_extra_languages = 0;
+    fmt->p_extra_languages = NULL;
 }
 #endif