[vlc-commits] smooth: remove unused XML validator
Rémi Denis-Courmont
git at videolan.org
Thu Jul 2 20:12:50 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 2 20:54:10 2015 +0300| [65b041afdf32738714c488ddc554355ac4f8b8e8] | committer: Rémi Denis-Courmont
smooth: remove unused XML validator
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65b041afdf32738714c488ddc554355ac4f8b8e8
---
modules/stream_filter/smooth/smooth.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index 0585e23..760f7d9 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -123,25 +123,16 @@ static void cleanup_attributes(custom_attrs_t **cp)
static int parse_Manifest( stream_t *s )
{
stream_sys_t *p_sys = s->p_sys;
- xml_t *vlc_xml = NULL;
xml_reader_t *vlc_reader = NULL;
int type = UNKNOWN_ES;
const char *name, *value;
stream_t *st = s->p_source;
msg_Dbg( s, "Manifest parsing\n" );
- vlc_xml = xml_Create( st );
- if( !vlc_xml )
- {
- msg_Err( s, "Failed to open XML parser" );
- return VLC_EGENERIC;
- }
-
- vlc_reader = xml_ReaderCreate( vlc_xml, st );
+ vlc_reader = xml_ReaderCreate( st, st );
if( !vlc_reader )
{
msg_Err( s, "Failed to open source for parsing" );
- xml_Delete( vlc_xml );
return VLC_EGENERIC;
}
@@ -432,7 +423,6 @@ cleanup:
cleanup_attributes( &cp );
sms_Free( sms );
xml_ReaderDelete( vlc_reader );
- xml_Delete( vlc_xml );
return ret;
}
More information about the vlc-commits
mailing list