Change-Id: I736b44cd7b47e67243a85c884bd2e19d2f1e4820
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
internal static partial class Libraries
{
public const string MediaCodec = "libcapi-media-codec.so.0";
+ public const string MediaTool = "libcapi-media-tool.so.0";
}
}
}
--- /dev/null
+using System;
+using System.Runtime.InteropServices;
+
+namespace Tizen.Multimedia.MediaCodec
+{
+ internal static partial class Interop
+ {
+ internal static class MediaPacket
+ {
+ [DllImport(Libraries.MediaTool, EntryPoint = "media_packet_destroy")]
+ internal static extern int Destroy(IntPtr handle);
+ }
+ }
+}
}
catch (Exception)
{
- Tizen.Multimedia.Interop.MediaPacket.Destroy(packetHandle);
+ Interop.MediaPacket.Destroy(packetHandle);
// TODO should we throw it to unmanaged code?
throw;
<ItemGroup>
<Compile Include="Interop\Interop.Libraries.cs" />
<Compile Include="Interop\Interop.MediaCodec.cs" />
+ <Compile Include="Interop\Interop.MediaTool.cs" />
<Compile Include="MediaCodec\BufferStatusChangedEventArgs.cs" />
<Compile Include="MediaCodec\InputProcessedEventArgs.cs" />
<Compile Include="MediaCodec\MediaCodec.cs" />