jitterbuffer: avoid leaking sink events

Avoid leaking the newsegment event when it has the wrong format.
This commit is contained in:
Wim Taymans 2010-12-13 12:56:12 +01:00
parent acc37e52a7
commit ffc7cd9803

View file

@ -1118,6 +1118,7 @@ newseg_wrong_format:
{ {
GST_DEBUG_OBJECT (jitterbuffer, "received non TIME newsegment"); GST_DEBUG_OBJECT (jitterbuffer, "received non TIME newsegment");
ret = FALSE; ret = FALSE;
gst_event_unref (event);
goto done; goto done;
} }
} }