ext/mad/gstmad.c: don't unref the event twice

Original commit message from CVS:
* ext/mad/gstmad.c: (gst_mad_handle_event):
don't unref the event twice
This commit is contained in:
Benjamin Otte 2004-05-19 19:34:12 +00:00
parent da3a35d960
commit 0746a067ed
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-05-19 Benjamin Otte <in7y118@public.uni-hamburg.de>
* ext/mad/gstmad.c: (gst_mad_handle_event):
don't unref the event twice
2004-05-19 Benjamin Otte <in7y118@public.uni-hamburg.de>
* configure.ac:

View file

@ -934,6 +934,7 @@ gst_mad_handle_event (GstPad * pad, GstBuffer * buffer)
time, NULL);
gst_pad_push (mad->srcpad, GST_DATA (discont));
}
gst_event_unref (event);
goto done;
}
}
@ -944,7 +945,6 @@ gst_mad_handle_event (GstPad * pad, GstBuffer * buffer)
mad->tempsize = 0;
/* we don't need to restart when we get here */
mad->restart = FALSE;
gst_event_unref (event);
break;
}
case GST_EVENT_EOS: