From 2af6229117c3235131c84c36aa27097a483fa3f6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 14 Aug 2006 10:19:41 +0000 Subject: [PATCH] ext/a52dec/gsta52dec.c: Instead of forwarding the event in the wrong format, unref it and set a boolean that we still... Original commit message from CVS: Patch by: Wim Taymans * ext/a52dec/gsta52dec.c: (gst_a52dec_sink_event): Instead of forwarding the event in the wrong format, unref it and set a boolean that we still need to send it in the streaming thread. Fixes #350554 --- ChangeLog | 11 ++++++++++- ext/a52dec/gsta52dec.c | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dcaad2519c..d7b023876e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,15 @@ 2006-08-14 Thomas Vander Stichele - Patch by: Edward Hervey (edward at fluendo dot com) + Patch by: Wim Taymans + + * ext/a52dec/gsta52dec.c: (gst_a52dec_sink_event): + Instead of forwarding the event in the wrong format, unref it and set + a boolean that we still need to send it in the streaming thread. + Fixes #350554 + +2006-08-14 Thomas Vander Stichele + + Patch by: Edward Hervey * ext/dvdread/dvdreadsrc.c: (plugin_init): Put debug category initialization before use of GST_DEBUG, in order diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 71e84b1687..b2a6fd3dc4 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -366,16 +366,18 @@ gst_a52dec_sink_event (GstPad * pad, GstEvent * event) NULL); if (format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (val)) { GST_WARNING ("No time in newsegment event %p", event); + gst_event_unref (event); + a52dec->sent_segment = FALSE; } else { a52dec->time = val; a52dec->sent_segment = TRUE; + ret = gst_pad_event_default (pad, event); } if (a52dec->cache) { gst_buffer_unref (a52dec->cache); a52dec->cache = NULL; } - ret = gst_pad_event_default (pad, event); break; } case GST_EVENT_TAG: -- 2.34.1