A Brisbane man has walked free from court after an extraordinary outburst in which he called a magistrate a "f---ing c---" and swore at police.

The Director of Public Prosecutions was applying to put Barry Bernard Harvey, 52, back behind bars, alleging he had breached his bail conditions.

Barry Harvey leaves the Brisbane Magistrates Court after swearing at a magistrate and police. Credit:Jorge Branco

Mr Harvey became abusive from the beginning of the hearing on Wednesday morning, shouting over the magistrate repeatedly as she tried to carry out the hearing.

"Please don't interrupt me when I'm explaining the situation," he said early on, before his language became more vile.