Change-Id: I8fb26b638937b1377bce0ef5a19dc79c8c07a4a0
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
{
internal delegate MediaContentError GetStringFunc<T>(T handle, out IntPtr value);
- internal static string GetString<T>(T handle, GetStringFunc<T> func)
+ internal static string GetString<T>(T handle, GetStringFunc<T> func, bool nullable = false)
{
IntPtr val = IntPtr.Zero;
try
if (val == IntPtr.Zero)
{
- return string.Empty;
+ return nullable ? null : string.Empty;
}
return Marshal.PtrToStringAnsi(val);
DateModified = InteropHelper.GetDateTime(handle, Interop.MediaInfo.GetModifiedTime);
Timeline = InteropHelper.GetDateTime(handle, Interop.MediaInfo.GetTimeline);
- ThumbnailPath = InteropHelper.GetString(handle, Interop.MediaInfo.GetThumbnailPath);
+ ThumbnailPath = InteropHelper.GetString(handle, Interop.MediaInfo.GetThumbnailPath, true);
Description = InteropHelper.GetString(handle, Interop.MediaInfo.GetDescription);
Longitude = InteropHelper.GetValue<double>(handle, Interop.MediaInfo.GetLongitude);