sink->dump.path = g_strdup_printf("%s/webrtc-%p.sink%u.%s.%s.dump",
sink->webrtc->ini.general.dump_path, sink->webrtc, sink->id,
probe_data->av_idx == AV_IDX_AUDIO ? "audio" : "video", str_arr[1]);
+ RET_VAL_IF(sink->dump.path == NULL, GST_PAD_PROBE_REMOVE, "sink->dump.path is NULL");
+
sink->dump.fp = fopen(sink->dump.path, "w");
if (!sink->dump.fp) {
LOG_ERROR("failed to fopen() for %s, error:%s", sink->dump.path, g_strerror(errno));
}
}
}
-//LCOV_EXCL_STOP
\ No newline at end of file
+//LCOV_EXCL_STOP