}
/* set size and timestamp */
- if (_mmcamcorder_is_encoded_preview_pixel_format(stream.format))
+ if (_mmcamcorder_is_encoded_preview_pixel_format(stream.format)) {
memory = gst_buffer_get_all_memory(buffer);
- else
+ stream.internal_buffer = buffer;
+ } else {
memory = gst_buffer_peek_memory(buffer, 0);
+ }
if (!memory) {
MMCAM_LOG_ERROR("GstMemory get failed from buffer %p", buffer);
return FALSE;
hcamcorder);
}
- _MMCAMCORDER_ELEMENT_MAKE(sc, sc->encode_element, _MMCAMCORDER_ENCSINK_ENCBIN, "encodebin", "encodesink_encbin", element_list, err);
+ _MMCAMCORDER_ELEMENT_MAKE(sc, sc->encode_element, _MMCAMCORDER_ENCSINK_ENCBIN,
+ "tizenencodebin", "encodesink_encbin", element_list, err);
/* check element availability */
if (profile == MM_CAMCORDER_ENCBIN_PROFILE_IMAGE) {