From 42c08ab20fab4ddfbf085c0fb3f4250fc607263c Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 21 Nov 2008 18:26:14 +0000 Subject: [PATCH] plugins/elements/gstfilesrc.c: Check for localhost in URI was backwards, fix it. Fixes unit test. Original commit message from CVS: * plugins/elements/gstfilesrc.c: Check for localhost in URI was backwards, fix it. Fixes unit test. --- ChangeLog | 5 +++++ plugins/elements/gstfilesrc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 86e245c1f1..1d332f6304 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-21 Michael Smith + + * plugins/elements/gstfilesrc.c: + Check for localhost in URI was backwards, fix it. Fixes unit test. + 2008-11-21 Wim Taymans * libs/gst/base/gstbasetransform.c: (gst_base_transform_init), diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index 6d63152f5f..d9bc69990e 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -1120,7 +1120,7 @@ gst_file_src_uri_set_uri (GstURIHandler * handler, const gchar * uri) } if (hostname) { - if (!strcmp (hostname, "localhost")) { + if (strcmp (hostname, "localhost")) { /* Only 'localhost' is permitted */ GST_WARNING_OBJECT (src, "Invalid hostname '%s' for filesrc", hostname); g_free (hostname); -- 2.34.1