diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-07-08 19:31:05 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-07-08 19:31:05 +0000 |
commit | eebc284b1344955a0a0cddb7ff3637981c8d3b41 (patch) | |
tree | ee6caf582ab915e96ab42526736d590ab1883923 /ext | |
parent | 46b555bd15a1d8af72791b7bde8fc72aea50f8f8 (diff) |
unref events, unref pool
Original commit message from CVS:
unref events, unref pool
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dv/gstdvdec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index b64a692a..87014129 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -453,7 +453,7 @@ gst_dvdec_handle_sink_event (GstDVDec *dvdec) switch (type) { case GST_EVENT_EOS: gst_pad_event_default (dvdec->sinkpad, event); - break; + return TRUE; case GST_EVENT_FLUSH: break; case GST_EVENT_DISCONTINUOUS: @@ -483,7 +483,7 @@ gst_dvdec_handle_sink_event (GstDVDec *dvdec) g_warning ("unhandled event %d\n", type); break; } - gst_event_free (event); + gst_event_unref (event); return TRUE; } @@ -527,6 +527,7 @@ gst_dvdec_handle_src_event (GstPad *pad, GstEvent *event) res = FALSE; break; } + gst_event_unref (event); return res; } @@ -751,6 +752,8 @@ gst_dvdec_change_state (GstElement *element) case GST_STATE_PAUSED_TO_PLAYING: break; case GST_STATE_PLAYING_TO_PAUSED: + if (dvdec->pool) + gst_buffer_pool_unref (dvdec->pool); dvdec->pool = NULL; break; case GST_STATE_PAUSED_TO_READY: |