if (handle->encodebin->video_event_probe_id) {
g_source_remove(handle->encodebin->video_event_probe_id);
- handle->property->video_cb_probe_id = 0;
+ handle->encodebin->video_event_probe_id = 0;
debug_log("g_source_remove (video_event_probe_id)");
}
static void _mm_transcode_audio_capsfilter(GstCaps *caps, handle_s *handle)
{
+ gchar *str = NULL;
+
if (!handle) {
debug_error("[ERROR] - handle");
return;
TRANSCODE_FREE(handle->property->audiodecodename);
g_object_set(G_OBJECT(handle->decoder_audp->audflt), "caps", caps, NULL);
- debug_log("%s audiocaps: %s", "audio decoder capsfilter", gst_caps_to_string(caps));
+
+ str = gst_caps_to_string(caps);
+
+ if (str) {
+ debug_log("audio decoder capsfilter audiocaps: %s", str);
+ g_free(str);
+ }
+
+ return;
+
}
int _mm_transcode_create(handle_s *handle)