[vlc-commits] commit: Fixed xml_reader usage in the freetype module. (Laurent Aimar )

git at videolan.org git at videolan.org
Tue Aug 17 23:38:07 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Aug 17 23:31:38 2010 +0200| [205ca91723f906f2568b3a1d670d0d7c9d1d0e02] | committer: Laurent Aimar 

Fixed xml_reader usage in the freetype module.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=205ca91723f906f2568b3a1d670d0d7c9d1d0e02
---

 modules/misc/freetype.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 22cb970..7d6c4f6 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -2236,7 +2236,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
             {
                 /* Only text and karaoke tags are supported */
                 msg_Dbg( p_filter, "Unsupported top-level tag '%s' ignored.", psz_node );
-                xml_ReaderDelete( p_xml_reader );
+                p_filter->p_sys->p_xml = xml_ReaderReset( p_xml_reader, NULL );
                 p_xml_reader = NULL;
                 rv = VLC_EGENERIC;
             }
@@ -2297,7 +2297,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
                                 result.x, result.y );
             }
         }
-        xml_ReaderReset( p_xml_reader, NULL );
+        p_filter->p_sys->p_xml = xml_ReaderReset( p_xml_reader, NULL );
         FreeLines( p_lines );
     }
     stream_Delete( p_sub );



More information about the vlc-commits mailing list