signalprocessor: Remove dead assignments

This commit is contained in:
Edward Hervey 2010-11-25 19:31:35 +01:00
parent 3a507f9ef9
commit e93ca3ac87

View file

@ -803,15 +803,12 @@ gst_signal_processor_update_outputs (GstSignalProcessor * self,
static gboolean static gboolean
gst_signal_processor_process (GstSignalProcessor * self, guint nframes) gst_signal_processor_process (GstSignalProcessor * self, guint nframes)
{ {
GstElement *elem;
GstSignalProcessorClass *klass; GstSignalProcessorClass *klass;
/* check if we have buffers enqueued */ /* check if we have buffers enqueued */
g_return_val_if_fail (self->pending_in == 0, FALSE); g_return_val_if_fail (self->pending_in == 0, FALSE);
g_return_val_if_fail (self->pending_out == 0, FALSE); g_return_val_if_fail (self->pending_out == 0, FALSE);
elem = GST_ELEMENT (self);
/* check how much input is available and prepare output buffers */ /* check how much input is available and prepare output buffers */
nframes = gst_signal_processor_prepare (self, nframes); nframes = gst_signal_processor_prepare (self, nframes);
if (G_UNLIKELY (nframes == 0)) if (G_UNLIKELY (nframes == 0))
@ -1046,10 +1043,8 @@ gst_signal_processor_sink_activate_push (GstPad * pad, gboolean active)
{ {
gboolean result = TRUE; gboolean result = TRUE;
GstSignalProcessor *self; GstSignalProcessor *self;
GstSignalProcessorClass *bclass;
self = GST_SIGNAL_PROCESSOR (gst_pad_get_parent (pad)); self = GST_SIGNAL_PROCESSOR (gst_pad_get_parent (pad));
bclass = GST_SIGNAL_PROCESSOR_GET_CLASS (self);
if (active) { if (active) {
if (self->mode == GST_ACTIVATE_NONE) { if (self->mode == GST_ACTIVATE_NONE) {
@ -1085,10 +1080,8 @@ gst_signal_processor_src_activate_pull (GstPad * pad, gboolean active)
{ {
gboolean result = TRUE; gboolean result = TRUE;
GstSignalProcessor *self; GstSignalProcessor *self;
GstSignalProcessorClass *bclass;
self = GST_SIGNAL_PROCESSOR (gst_pad_get_parent (pad)); self = GST_SIGNAL_PROCESSOR (gst_pad_get_parent (pad));
bclass = GST_SIGNAL_PROCESSOR_GET_CLASS (self);
if (active) { if (active) {
if (self->mode == GST_ACTIVATE_NONE) { if (self->mode == GST_ACTIVATE_NONE) {