If the output buffer is keyframe, output media packet will set sync_frame flag 13/106513/2 accepted/tizen/3.0/common/20161227.101503 accepted/tizen/3.0/ivi/20161226.025550 accepted/tizen/3.0/mobile/20161226.025505 accepted/tizen/3.0/tv/20161226.025519 accepted/tizen/3.0/wearable/20161226.025528 submit/tizen_3.0/20161222.102746
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 22 Dec 2016 04:12:22 +0000 (13:12 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 22 Dec 2016 05:38:27 +0000 (14:38 +0900)
There is a problem setting the gstbuffer frag in the media packet.

[Version] 0.1.14
[Profile] Common(Mobile, Wearable, TV)
[Issue Type] Fix bugs (Migration, Add features, Refactoring, Script etc.)

Change-Id: Ifc2f85772614e3cf8010be84ef4eea078739eade

packaging/capi-mediademuxer.spec
src/port_gst/mediademuxer_port_gst.c

index 2d0a380..92f18b4 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-mediademuxer
 Summary:    A Media Demuxer library in Tizen Native API
-Version:    0.1.13
+Version:    0.1.14
 Release:    1
 Group:      Multimedia/API
 License:    Apache-2.0
index bcd2a80..38a3ac8 100755 (executable)
@@ -1425,10 +1425,12 @@ static int _gst_copy_buf_to_media_packet(media_packet_h out_pkt,
                ret = MD_ERROR_UNKNOWN;
                goto ERROR;
        }
-       if (media_packet_set_flags(out_pkt, GST_BUFFER_FLAGS(buffer))) {
-               MD_E("unable to set the buffer size\n");
-               ret = MD_ERROR_UNKNOWN;
-               goto ERROR;
+       if (!GST_BUFFER_FLAG_IS_SET(buffer, GST_BUFFER_FLAG_DELTA_UNIT)) {
+               if (media_packet_set_flags(out_pkt, MEDIA_PACKET_SYNC_FRAME)) {
+                       MD_E("unable to set the buffer flag\n");
+                       ret = MD_ERROR_UNKNOWN;
+                       goto ERROR;
+               }
        }
        /* set codec data into media packet */
        if (codec_data) {