File linphone-0002-nowebcamjpg.patch of Package linphone
diff -U 3 -H -d -r -N -- a/src/factory/factory.cpp b/src/factory/factory.cpp
--- a/src/factory/factory.cpp
+++ b/src/factory/factory.cpp
@@ -442,10 +442,10 @@
if (!mImageResourcesDir.empty()) return mImageResourcesDir;
if (!mTopResourcesDir.empty()) {
mCachedImageResourcesDir = mTopResourcesDir;
- mCachedImageResourcesDir.append("/images");
+ mCachedImageResourcesDir.append("/linphone/images");
}else{
mCachedImageResourcesDir = PACKAGE_DATA_DIR;
- mCachedImageResourcesDir.append("/images");
+ mCachedImageResourcesDir.append("/linphone/images");
}
return mCachedImageResourcesDir;
}
diff -U 3 -H -d -r -N -- a/tester/flexisip_tester.c b/tester/flexisip_tester.c
--- a/tester/flexisip_tester.c
+++ b/tester/flexisip_tester.c
@@ -979,7 +979,7 @@
LinphoneContent* content;
FILE *file_to_send = NULL;
size_t file_size;
- char *send_filepath = bc_tester_res("images/nowebcamCIF.jpg");
+ char *send_filepath = bc_tester_res("linphone/images/nowebcamCIF.jpg");
LinphoneCoreManager* marie = linphone_core_manager_new_with_proxies_check( "marie_rc", FALSE);
LinphoneCoreManager* pauline = linphone_core_manager_new_with_proxies_check( "pauline_rc", FALSE);
// This is done to prevent register to be sent before the custom header is set
diff -U 3 -H -d -r -N -- a/tester/tester.c b/tester/tester.c
--- a/tester/tester.c
+++ b/tester/tester.c
@@ -237,7 +237,7 @@
// setup dynamic-path assets
ringpath = ms_strdup_printf("%s/sounds/oldphone.wav",path);
ringbackpath = ms_strdup_printf("%s/sounds/ringback.wav", path);
- nowebcampath = ms_strdup_printf("%s/images/nowebcamCIF.jpg", path);
+ nowebcampath = ms_strdup_printf("%s/linphone/images/nowebcamCIF.jpg", path);
rootcapath = ms_strdup_printf("%s/certificates/cn/cafile.pem", path);
if (config) {
diff -U 3 -H -d -r -N -- a/tools/python/unittests/linphonetester.py b/tools/python/unittests/linphonetester.py
--- a/tools/python/unittests/linphonetester.py
+++ b/tools/python/unittests/linphonetester.py
@@ -320,7 +320,7 @@
lc.root_ca = os.path.join(resources_path, 'certificates', 'cn', 'cafile.pem')
lc.ring = os.path.join(resources_path, 'sounds', 'oldphone.wav')
lc.ringback = os.path.join(resources_path, 'sounds', 'ringback.wav')
- lc.static_picture = os.path.join(resources_path, 'images', 'nowebcamCIF.jpg')
+ lc.static_picture = os.path.join(resources_path, 'linphone/images', 'nowebcamCIF.jpg')
lc.user_data = weakref.ref(user_data)
return lc