diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2004-06-07 13:25:14 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2004-06-07 13:25:14 +0000 |
commit | a6659f8a245ce35a58d97bf8327fd35d13a60925 (patch) | |
tree | 0087a4536c31b95917728e56665563425ef23646 /ext/dv | |
parent | 192579e18b1bf951316fcb2be1a271d86d1d1b8b (diff) |
Stupid mans! Don't unref things more than you ref them!
Original commit message from CVS:
Stupid mans! Don't unref things more than you ref them!
Diffstat (limited to 'ext/dv')
-rw-r--r-- | ext/dv/gstdvdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 6e178de5..de547145 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -610,6 +610,7 @@ gst_dvdec_handle_sink_event (GstDVDec * dvdec) case GST_EVENT_FLUSH: case GST_EVENT_EOS: case GST_EVENT_FILLER: + { /* Forward the event to output sinks */ if (GST_PAD_IS_LINKED (dvdec->videosrcpad)) { gst_event_ref (event); @@ -619,8 +620,8 @@ gst_dvdec_handle_sink_event (GstDVDec * dvdec) gst_event_ref (event); gst_pad_push (dvdec->audiosrcpad, GST_DATA (event)); } - gst_event_unref (event); break; + } case GST_EVENT_DISCONTINUOUS: { gint i; @@ -877,7 +878,6 @@ gst_dvdec_loop (GstElement * element) dv_parse_packs (dvdec->decoder, GST_BUFFER_DATA (buf)); if (dv_is_new_recording (dvdec->decoder, GST_BUFFER_DATA (buf))) dvdec->new_media = TRUE; - if (GST_PAD_IS_LINKED (dvdec->audiosrcpad)) { gint16 *a_ptr; gint i, j; |