static GstStateChangeReturn gst_trm_change_state (GstElement * element, GstStateChange transition) { GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS; GstTRM *trm; trm = GST_TRM (element); switch (transition) { case GST_STATE_CHANGE_READY_TO_PAUSED: trm->trm = trm_New (); break; default: break; } ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); if (ret != GST_STATE_CHANGE_SUCCESS) return ret; switch (transition) { case GST_STATE_CHANGE_PAUSED_TO_READY: trm_Delete (trm->trm); trm->trm = NULL; trm->data_available = FALSE; trm->signature_available = FALSE; break; default: break; } return ret; }
K3b::TRM::~TRM() { trm_Delete( d->trm ); delete d; }