[MediaTool] Fix buffer bug (#3242)
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 29 Jun 2021 07:41:19 +0000 (16:41 +0900)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 07:41:19 +0000 (16:41 +0900)
src/Tizen.Multimedia/MediaTool/MediaPacket.cs

index 0efe75b..27fc69b 100644 (file)
@@ -69,6 +69,8 @@ namespace Tizen.Multimedia
                 {
                     _format = MediaFormat.FromHandle(formatHandle);
                 }
+
+                _buffer = new Lazy<IMediaBuffer>(GetBuffer);
             }
             finally
             {