iosassetsrc: Print the correct URI if it was rejected

We were printing the previously set URI instead of the new one.
This commit is contained in:
Sebastian Dröge 2016-06-13 09:20:02 +03:00
parent c7e4217121
commit 0275007107

View file

@ -206,9 +206,9 @@ gst_ios_asset_src_set_uri (GstIOSAssetSrc * src, const gchar * uri, GError **err
url = [[NSURL alloc] initWithString:nsuristr]; url = [[NSURL alloc] initWithString:nsuristr];
if (url == NULL) { if (url == NULL) {
GST_ERROR_OBJECT (src, "Invalid URI: %s", src->uri); GST_ERROR_OBJECT (src, "Invalid URI: %s", uri);
g_set_error (err, GST_URI_ERROR, GST_URI_ERROR_BAD_URI, g_set_error (err, GST_URI_ERROR, GST_URI_ERROR_BAD_URI,
"Invalid URI: %s", src->uri); "Invalid URI: %s", uri);
return FALSE; return FALSE;
} }