handle->encodebin->encvideopad = gst_element_get_request_pad(handle->encodebin->encbin, "video");
if(handle->encodebin->encvideopad) {
debug_log("encvideopad: 0x%2x", handle->encodebin->encvideopad);
- gst_pad_link(handle->decoder_vidp->srcdecvideopad, handle->encodebin->encvideopad);
+ gst_pad_link(handle->decoder_vidp->srcdecvideopad, handle->encodebin->encvideopad);
} else {
debug_error("error encvideopad");
return MM_ERROR_TRANSCODE_INTERNAL;
handle->encodebin->encaudiopad = gst_element_get_request_pad(handle->encodebin->encbin, "audio");
if(handle->encodebin->encaudiopad) {
debug_log("encaudiopad: 0x%2x", handle->encodebin->encaudiopad);
- gst_pad_link(handle->decoder_audp->srcdecaudiopad, handle->encodebin->encaudiopad);
+ gst_pad_link(handle->decoder_audp->srcdecaudiopad, handle->encodebin->encaudiopad);
} else {
debug_error("error encaudiopad");
return MM_ERROR_TRANSCODE_INTERNAL;
return MM_ERROR_TRANSCODE_INTERNAL;
}
- if(g_strcmp0(handle->property->aenc, AACENC) == 0) {
+ if(g_strcmp0(handle->property->aenc, AACENC) == 0) {
g_object_set(G_OBJECT(gst_bin_get_by_name(GST_BIN(handle->encodebin->encbin), "audio_encode")), AACCOMPLIANCE, AACCOMPLIANCELEVEL, NULL);
}
_mm_transcode_audio_capsfilter(gst_pad_get_current_caps (pad), handle); /* Need to audio caps converting when amrnbenc*/ /* Not drop buffer with 'return FALSE'*/
if(handle->param->seeking) {
- debug_log("[AUDIO BUFFER TIMESTAMP] ([%"G_GUINT64_FORMAT"])", start_pos_ts);
- GST_BUFFER_TIMESTAMP (GST_PAD_PROBE_INFO_BUFFER(info)) = start_pos_ts;
+ debug_log("[AUDIO BUFFER TIMESTAMP] ([%"G_GUINT64_FORMAT"])", start_pos_ts);
+ GST_BUFFER_TIMESTAMP (GST_PAD_PROBE_INFO_BUFFER(info)) = start_pos_ts;
}
}
}
- return GST_PAD_PROBE_OK;
+ return GST_PAD_PROBE_OK;
}
GstAutoplugSelectResult
if(GST_BUFFER_TIMESTAMP_IS_VALID (GST_PAD_PROBE_INFO_BUFFER(info))) {
if(0 == handle->property->VIDFLAG++) {
- _mm_transcode_video_capsfilter(gst_pad_get_current_caps (pad), handle); /* Not drop buffer with 'return FALSE'*/
+ _mm_transcode_video_capsfilter(gst_pad_get_current_caps (pad), handle); /* Not drop buffer with 'return FALSE'*/
if(handle->param->seeking) {
- debug_log("[VIDEO BUFFER TIMESTAMP] ([%"G_GUINT64_FORMAT"])", start_pos_ts);
- GST_BUFFER_TIMESTAMP (GST_PAD_PROBE_INFO_BUFFER(info)) = start_pos_ts;
+ debug_log("[VIDEO BUFFER TIMESTAMP] ([%"G_GUINT64_FORMAT"])", start_pos_ts);
+ GST_BUFFER_TIMESTAMP (GST_PAD_PROBE_INFO_BUFFER(info)) = start_pos_ts;
}
}
}