MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / clear_log

Function clear_log

fftools/ffprobe.c:1213–1227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211}
1212
1213static void clear_log(int need_lock)
1214{
1215 int i;
1216
1217 if (need_lock)
1218 ff_mutex_lock(&log_mutex);
1219 for (i=0; i<log_buffer_size; i++) {
1220 av_freep(&log_buffer[i].context_name);
1221 av_freep(&log_buffer[i].parent_name);
1222 av_freep(&log_buffer[i].log_message);
1223 }
1224 log_buffer_size = 0;
1225 if(need_lock)
1226 ff_mutex_unlock(&log_mutex);
1227}
1228
1229static int show_log(AVTextFormatContext *tfc, int section_ids, int section_id, int log_level)
1230{

Callers 2

show_logFunction · 0.85
process_frameFunction · 0.85

Calls 3

ff_mutex_lockFunction · 0.85
av_freepFunction · 0.85
ff_mutex_unlockFunction · 0.85

Tested by

no test coverage detected