y4mdec: fix event leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 12 Jan 2012 15:19:01 +0000 (15:19 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 12 Jan 2012 15:19:01 +0000 (15:19 +0000)
gst/y4m/gsty4mdec.c

index b2ebfb7..2163d02 100644 (file)
@@ -591,6 +591,9 @@ gst_y4m_dec_sink_event (GstPad * pad, GstEvent * event)
       }
 
       res = TRUE;
+      /* not sure why it's not forwarded, but let's unref it so it
+         doesn't leak, remove the unref if it gets forwarded again */
+      gst_event_unref (event);
       //res = gst_pad_push_event (y4mdec->srcpad, event);
     }
       break;