plugins/elements/gstfilesrc.c: Check for localhost in URI was backwards, fix it....
authorMichael Smith <msmith@xiph.org>
Fri, 21 Nov 2008 18:26:14 +0000 (18:26 +0000)
committerMichael Smith <msmith@xiph.org>
Fri, 21 Nov 2008 18:26:14 +0000 (18:26 +0000)
Original commit message from CVS:
* plugins/elements/gstfilesrc.c:
Check for localhost in URI was backwards, fix it. Fixes unit test.

ChangeLog
plugins/elements/gstfilesrc.c

index 86e245c..1d332f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-21  Michael Smith <msmith@songbirdnest.com>
+
+       * plugins/elements/gstfilesrc.c:
+         Check for localhost in URI was backwards, fix it. Fixes unit test.
+
 2008-11-21  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * libs/gst/base/gstbasetransform.c: (gst_base_transform_init),
index 6d63152..d9bc699 100644 (file)
@@ -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);