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 <wim at fluendo dot com>
* 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
This commit is contained in:
Wim Taymans 2006-08-14 10:19:41 +00:00 committed by Thomas Vander Stichele
parent c06944a4ef
commit 2af6229117
2 changed files with 13 additions and 2 deletions

View file

@ -1,6 +1,15 @@
2006-08-14 Thomas Vander Stichele <thomas at apestaart dot org>
Patch by: Edward Hervey (edward at fluendo dot com)
Patch by: Wim Taymans <wim at fluendo dot com>
* 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 <thomas at apestaart dot org>
Patch by: Edward Hervey <edward at fluendo dot com>
* ext/dvdread/dvdreadsrc.c: (plugin_init):
Put debug category initialization before use of GST_DEBUG, in order

View file

@ -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: