diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-07-07 15:05:59 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-07-07 15:05:59 +0100 |
commit | fbf2773b2ea795a17a29e163a00f4b8d0a668b5e (patch) | |
tree | 4c6e1e3017a3eecc854c84ac7dee551de5571ef4 /gst-libs/gst/rtp | |
parent | 9dc463346eb42ad5504a98739f627078f5e5c925 (diff) |
rtpbasepayload: fix possible segment event leak
Need to clear it when shutting down, not when starting up.
Fixes leak in rtp-payloading unit test.
Diffstat (limited to 'gst-libs/gst/rtp')
-rw-r--r-- | gst-libs/gst/rtp/gstrtpbasedepayload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/rtp/gstrtpbasedepayload.c b/gst-libs/gst/rtp/gstrtpbasedepayload.c index 8b0a7212a..3e5b99586 100644 --- a/gst-libs/gst/rtp/gstrtpbasedepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasedepayload.c @@ -862,7 +862,6 @@ gst_rtp_base_depayload_change_state (GstElement * element, priv->next_seqnum = -1; priv->negotiated = FALSE; priv->discont = FALSE; - gst_event_replace (&filter->priv->segment_event, NULL); break; case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; @@ -877,6 +876,7 @@ gst_rtp_base_depayload_change_state (GstElement * element, break; case GST_STATE_CHANGE_PAUSED_TO_READY: gst_caps_replace (&priv->last_caps, NULL); + gst_event_replace (&priv->segment_event, NULL); break; case GST_STATE_CHANGE_READY_TO_NULL: break; |