Name: capi-mediamuxer
Summary: A Media Muxer library in Tizen Native API
-Version: 0.1.27
+Version: 0.1.28
Release: 0
Group: Multimedia/API
License: Apache-2.0
key = 0;
}
- if (media_packet_create(media_format_a, NULL, NULL, &aud_pkt)) {
+ if (media_packet_new(media_format_a, NULL, NULL, &aud_pkt)) {
g_print("create audio media_packet failed\n");
goto ERROR1;
}
mediamuxer_write_sample(myMuxer, track_index_aud2, aud_pkt);
ERROR2:
- media_packet_destroy(aud_pkt);
+ media_packet_unref(aud_pkt);
ERROR1:
gst_buffer_unmap(buffer, &map);
return;
goto ERROR2;
}
- if (media_packet_create(vidfmt, NULL, NULL, &vid_pkt)) {
+ if (media_packet_new(vidfmt, NULL, NULL, &vid_pkt)) {
g_print("create video media_packet failed\n");
goto ERROR2;
}
mediamuxer_write_sample(myMuxer, track_index_vid, vid_pkt);
ERROR3:
- media_packet_destroy(vid_pkt);
+ media_packet_unref(vid_pkt);
ERROR2:
gst_caps_unref(vid_caps_gst);
ERROR1:
key = 0;
}
- if (media_packet_create(textfmt, NULL, NULL, &text_pkt)) {
+ if (media_packet_new(textfmt, NULL, NULL, &text_pkt)) {
g_print("create text media_packet failed\n");
goto ERROR1;
}
mediamuxer_write_sample(myMuxer, track_index_text, text_pkt);
ERROR2:
- media_packet_destroy(text_pkt);
+ media_packet_unref(text_pkt);
ERROR1:
media_format_unref(textfmt);
gst_buffer_unmap(buffer, &map);
media_packet_get_buffer_data_ptr(vidbuf, &data);
g_print("Video Read Count::[%4d] frame - get_buffer_size = %"PRIu64"\n", count, buf_size);
- media_packet_destroy(vidbuf);
+ media_packet_unref(vidbuf);
if (vid_eos_track)
break;
media_packet_get_buffer_data_ptr(audbuf, &data);
g_print("Audio Read Count::[%4d] frame - get_buffer_size = %"PRIu64"\n", count, buf_size);
- media_packet_destroy(audbuf);
+ media_packet_unref(audbuf);
if (aud_eos_track)
break;
/* input_buf = (media_packet_h *)malloc(sizeof(media_packet_h)*MAX_INPUT_BUF_NUM); */
for (i = 0; i < MAX_INPUT_BUF_NUM; i++) {
- media_packet_create_alloc(input_fmt, NULL, NULL, &input_buf[i]);
+ media_packet_new_alloc(input_fmt, NULL, NULL, &input_buf[i]);
g_print("if-input queue buf = %p\n", input_buf[i]);
g_queue_push_tail(&input_available, input_buf[i]);
}
#else
- media_packet_create_alloc(input_fmt, NULL, NULL, &in_buf);
+ media_packet_new_alloc(input_fmt, NULL, NULL, &in_buf);
g_print("else-input queue buf = %p\n", in_buf);
#endif
return;
if (media_packet_get_buffer_size(pkt, &size)) {
g_print("unable to get the buffer size actual =%"PRIu64"\n", size);
- media_packet_destroy(pkt);
+ media_packet_unref(pkt);
return;
}
/* for print log */
#endif
}
- media_packet_destroy(pkt);
+ media_packet_unref(pkt);
return;
}
g_print("availablebuf = %p\n", pkt);
#else
g_print("Used input buffer = %p\n", pkt);
- media_packet_destroy(pkt);
+ media_packet_unref(pkt);
#endif
}
return;