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.
This commit is contained in:
Michael Smith 2008-11-21 18:26:14 +00:00
parent c0e491cdca
commit 42c08ab20f
2 changed files with 6 additions and 1 deletions

View file

@ -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),

View 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);