gio: Use OPEN_READ instead of NOT_FOUND if a location is not mounted

This commit is contained in:
Sebastian Dröge 2009-07-08 16:54:56 +02:00
parent a8896413a0
commit 7228ba6acd

View file

@ -304,7 +304,7 @@ gst_gio_src_get_stream (GstGioBaseSrc * bsrc)
gst_structure_new ("not-mounted", "file", G_TYPE_FILE, src->file, gst_structure_new ("not-mounted", "file", G_TYPE_FILE, src->file,
"uri", G_TYPE_STRING, uri, NULL))); "uri", G_TYPE_STRING, uri, NULL)));
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL), GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (NULL),
("Location %s not mounted: %s", uri, err->message)); ("Location %s not mounted: %s", uri, err->message));
} else { } else {
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (NULL), GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (NULL),