]> git.sesse.net Git - vlc/blobdiff - src/misc/xml.c
Add NV12/NV21 as YUV formats
[vlc] / src / misc / xml.c
index ab3986e6afc3a3986f491fee60cc17e2248ec64b..e145a5fa7ae83959137eb6142fa80e07d9fec04f 100644 (file)
@@ -1,23 +1,23 @@
 /*****************************************************************************
  * xml.c: XML parser wrapper for XML modules
  *****************************************************************************
- * Copyright (C) 2004-2010 the VideoLAN team
+ * Copyright (C) 2004-2010 VLC authors and VideoLAN
  *
  * Authors: Gildas Bazin <gbazin@videolan.org>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -90,13 +90,12 @@ xml_reader_t *xml_ReaderCreate(vlc_object_t *obj, stream_t *stream)
 
 /**
  * Deletes an XML reader.
- * @param reader XML reader created with xml_RaederCreate().
+ * @param reader XML reader created with xml_ReaderCreate().
  */
 void xml_ReaderDelete(xml_reader_t *reader)
 {
     if (reader->p_stream)
         module_stop(reader, reader->p_module);
-    module_release(reader->p_module);
     vlc_object_release(reader);
 }
 
@@ -121,7 +120,6 @@ xml_reader_t *xml_ReaderReset(xml_reader_t *reader, stream_t *stream)
     reader->p_stream = stream;
     if ((stream != NULL) && module_start(reader, reader->p_module))
     {
-        module_release(reader->p_module);
         vlc_object_release(reader);
         return NULL;
     }