/* free chapters TOC if any */
if (demux->common.toc) {
- gst_toc_free (demux->common.toc);
+ gst_toc_unref (demux->common.toc);
demux->common.toc = NULL;
}
gst_query_set_toc (query, toc, 0);
res = TRUE;
if (!demux->common.toc)
- gst_toc_free (toc);
+ gst_toc_unref (toc);
GST_OBJECT_UNLOCK (demux);
break;
}
}
gst_toc_setter_set_toc (GST_TOC_SETTER (mux), toc);
- gst_toc_free (toc);
+ gst_toc_unref (toc);
}
gst_event_unref (event);
if (toc_entry != NULL) {
g_list_free (toc_entry->subentries);
toc_entry->subentries = NULL;
- gst_toc_entry_free (toc_entry);
+ gst_toc_entry_unref (toc_entry);
g_list_free (to_write);
}
}
toc_entry->subentries = g_list_append (toc_entry->subentries, chapter_info);
} else
- gst_toc_entry_free (chapter_info);
+ gst_toc_entry_unref (chapter_info);
gst_tag_list_free (titles);
return ret;
else {
GST_DEBUG_OBJECT (common,
"Skipping empty or hidden edition in the chapters TOC");
- gst_toc_entry_free (edition_info);
+ gst_toc_entry_unref (edition_info);
}
return ret;
common->toc = toc;
} else
- gst_toc_free (toc);
+ gst_toc_unref (toc);
common->chapters_parsed = TRUE;