[Multimedia] Fixed a bug of MetadataExtractor. 50/150650/1
authorcoderhyme <jhyo.kim@samsung.com>
Mon, 18 Sep 2017 06:59:45 +0000 (15:59 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Mon, 18 Sep 2017 06:59:45 +0000 (15:59 +0900)
commita75f6f63e1bda70e5c6cc0b9b546a1d92fce94ae
tree0d52e8c8342a4eb320ba66252e18e7c5d2b8734d
parentcc93b75bc0b54e53f9a34630e43526d2f60f886e
[Multimedia] Fixed a bug of MetadataExtractor.

The issue was an extractor object is collected by GC while the object is still in use by internal members.
It happens only with the release binary and seems the compiler optimization is involved.
By this patch, the internal operation that causes an fatal error, keeps the extractor object until it ends.

Change-Id: Ie44b3207bef44ecd2b47f4f8bce9b919c2a70a40
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.Metadata/Interop/Interop.MetadataExtractor.cs
src/Tizen.Multimedia.Metadata/MetadataExtractor/Metadata.cs
src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractor.cs
src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorError.cs
src/Tizen.Multimedia.Metadata/MetadataExtractor/MetadataExtractorExtensions.cs [new file with mode: 0644]