changeset 1064:90dcc0060e22

follow Exiv2 SVN changes
author nadvornik
date Tue, 14 Oct 2008 21:24:34 +0000
parents 7ab3e6dc3794
children 6a8402e0eaea
files src/exiv2.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/exiv2.cc	Sun Oct 12 08:49:45 2008 +0000
+++ b/src/exiv2.cc	Tue Oct 14 21:24:34 2008 +0000
@@ -620,9 +620,9 @@
 
 	try {
 
-		Exiv2::PreviewImageLoader loader(*exif->image);
+		Exiv2::PreviewManager pm(*exif->image);
 
-		Exiv2::PreviewPropertiesList list = loader.getPreviewPropertiesList();
+		Exiv2::PreviewPropertiesList list = pm.getPreviewProperties();
 
 		if (!list.empty())
 			{
@@ -650,9 +650,9 @@
 					}
 				}
 
-			Exiv2::PreviewImage image = loader.getPreviewImage(*pos);
+			Exiv2::PreviewImage image = pm.getPreviewImage(*pos);
 
-			Exiv2::DataBuf &buf = image.data();
+			Exiv2::DataBuf buf = image.copy();
 			std::pair<Exiv2::byte*, long> p = buf.release();
 
 			*data_len = p.second;