diff options
Diffstat (limited to 'gst/playondemand')
-rw-r--r-- | gst/playondemand/filter.func | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/playondemand/filter.func b/gst/playondemand/filter.func index cded073e..092bbe56 100644 --- a/gst/playondemand/filter.func +++ b/gst/playondemand/filter.func @@ -11,14 +11,12 @@ do { while (! filter->eos && in != NULL && GST_IS_EVENT (in)) { GstEvent *event = GST_EVENT (in); if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { - gst_event_unref (event); - gst_data_free (in); + gst_data_unref (in); in = NULL; filter->eos = TRUE; } else if ((GST_EVENT_TYPE (event) == GST_EVENT_DISCONTINUOUS) || (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH)) { - gst_event_unref (event); - gst_data_free (in); + gst_data_unref (in); in = NULL; filter->eos = FALSE; filter->write = 0; |