From 02750071071f77149d5dab9a6cb73d25b63177af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 13 Jun 2016 09:20:02 +0300 Subject: [PATCH] iosassetsrc: Print the correct URI if it was rejected We were printing the previously set URI instead of the new one. --- sys/applemedia/iosassetsrc.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/applemedia/iosassetsrc.m b/sys/applemedia/iosassetsrc.m index fd83657..e237c2e 100644 --- a/sys/applemedia/iosassetsrc.m +++ b/sys/applemedia/iosassetsrc.m @@ -206,9 +206,9 @@ gst_ios_asset_src_set_uri (GstIOSAssetSrc * src, const gchar * uri, GError **err url = [[NSURL alloc] initWithString:nsuristr]; 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, - "Invalid URI: %s", src->uri); + "Invalid URI: %s", uri); return FALSE; } -- 2.7.4