diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-04-18 19:29:41 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-17 19:29:04 +0100 |
commit | 244bf6f250af2cbba0c97914913e000223a73f29 (patch) | |
tree | 6557dbe4679ced3de4aff3d05b6da58c63622ba7 /gst | |
parent | 696a8dc1881651d60e6dd040cd072c9dff025bfa (diff) | |
download | gst-plugins-bad-244bf6f250af2cbba0c97914913e000223a73f29.tar.gz gst-plugins-bad-244bf6f250af2cbba0c97914913e000223a73f29.tar.bz2 gst-plugins-bad-244bf6f250af2cbba0c97914913e000223a73f29.zip |
[MOVED FROM GST-P-FARSIGHT] Unref event instead of leaking it
20080418192941-3e2dc-352e25f6ab291612be1dc139790303a1333f65d7.gz
Diffstat (limited to 'gst')
-rw-r--r-- | gst/liveadder/liveadder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 84191e57..8b6e6f6c 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -524,6 +524,8 @@ gst_live_adder_sink_event (GstPad * pad, GstEvent * event) gst_event_parse_new_segment_full (event, &update, &rate, &arate, &format, &start, &stop, &time); + gst_event_unref (event); + /* we need time for now */ if (format != GST_FORMAT_TIME) goto newseg_wrong_format; @@ -540,8 +542,6 @@ gst_live_adder_sink_event (GstPad * pad, GstEvent * event) gst_segment_set_newsegment_full (&padprivate->segment, update, rate, arate, format, start, stop, time); GST_OBJECT_UNLOCK (adder); - - gst_event_unref (event); break; } case GST_EVENT_FLUSH_START: |