static av_cold void uninit(AVFilterContext *ctx) { Bs2bContext *bs2b = ctx->priv; if (bs2b->bs2bp) bs2b_close(bs2b->bs2bp); }
static void cleanup() { if (bs2b == NULL) return; bs2b_close(bs2b); bs2b = NULL; }
static void gst_crossfeed_finalize (GObject * object) { GstCrossfeed *crossfeed = GST_CROSSFEED (object); bs2b_close(crossfeed->bs2bdp); crossfeed->bs2bdp = NULL; g_mutex_free (crossfeed->bs2b_lock); g_mutex_free (crossfeed->lock); G_OBJECT_CLASS (parent_class)->finalize (object); }