SG_error SGHASH_init(const char * pszHashMethod, SGHASH_handle ** ppHandle) { int kLimit = SG_NrElements( SGHASH_alg__list ); int k; if (!ppHandle) return SG_ERR_INVALIDARG; if (!pszHashMethod || !*pszHashMethod) return _do_init( &SGHASH_ALGORITHM__DEFAULT, ppHandle); for (k=0; k<kLimit; k++) if (strcmp(pszHashMethod, SGHASH_alg__list[k]->pszHashMethod) == 0) return _do_init( SGHASH_alg__list[k], ppHandle); return SG_ERR_UNKNOWN_HASH_METHOD; }
void cputrans_rx_pkt_cleanup(void) { if (!INIT_DONE) { /* Create lock */ if (_do_init() < 0) { return; } } CPUTRANS_LOCK; _FREE_CHECK(_rx_free_lists); _FREE_CHECK(_rx_alloc_pkts); _FREE_CHECK(_rx_pkt_blks); _rx_lists = 0; _rx_setup_done = FALSE; CPUTRANS_UNLOCK; }
EXPORT_C GType gst_app_sink_get_type (void) { static GType object_type = 0; if (G_UNLIKELY (object_type == 0)) { object_type = gst_type_register_static_full(GST_TYPE_BASE_SINK, "GstAppSink", sizeof (GstAppSinkClass), (GBaseInitFunc) gst_app_sink_base_init, NULL, (GClassInitFunc) gst_app_sink_class_init_trampoline, NULL, NULL, sizeof (GstAppSink), 0, (GInstanceInitFunc) gst_app_sink_init, NULL, (GTypeFlags) 0); _do_init (object_type); } return object_type; }
GST_STATIC_PAD_TEMPLATE ("subtitle_%u", GST_PAD_SINK, GST_PAD_REQUEST, GST_STATIC_CAPS_ANY); static GQuark PAD_CONTEXT; static void _do_init (void) { PAD_CONTEXT = g_quark_from_static_string ("pad-context"); } #define gst_splitmux_sink_parent_class parent_class G_DEFINE_TYPE_EXTENDED (GstSplitMuxSink, gst_splitmux_sink, GST_TYPE_BIN, 0, _do_init ()); static gboolean create_elements (GstSplitMuxSink * splitmux); static gboolean create_sink (GstSplitMuxSink * splitmux); static void gst_splitmux_sink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_splitmux_sink_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); static void gst_splitmux_sink_dispose (GObject * object); static void gst_splitmux_sink_finalize (GObject * object); static GstPad *gst_splitmux_sink_request_new_pad (GstElement * element, GstPadTemplate * templ, const gchar * name, const GstCaps * caps); static void gst_splitmux_sink_release_pad (GstElement * element, GstPad * pad); static GstStateChangeReturn gst_splitmux_sink_change_state (GstElement *