From 8fcd95267dfdff02bca0c3555b8ef2ffed22ef75 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Fri, 4 Jul 2008 22:21:03 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Remove useless checks, document locking 20080704222103-3e2dc-47a7f49c414f98a188ffc42b07189daf5147483b.gz --- gst/siren/gstsirendec.c | 9 +-------- gst/siren/gstsirendec.h | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gst/siren/gstsirendec.c b/gst/siren/gstsirendec.c index e74129aebc..e9d0a2f6fc 100644 --- a/gst/siren/gstsirendec.c +++ b/gst/siren/gstsirendec.c @@ -167,14 +167,7 @@ gst_siren_dec_chain (GstPad *pad, GstBuffer *buf) gint decode_ret = 0; guint size = 0; - GST_LOG_OBJECT (dec, "Transform"); - - if (dec->decoder == NULL) { - GST_DEBUG ("Siren decoder not set"); - return GST_FLOW_WRONG_STATE; - } - - GST_LOG_OBJECT (dec,"Received buffer of size %d", GST_BUFFER_SIZE (buf)); + GST_LOG_OBJECT (dec, "Decoding buffer of size %d", GST_BUFFER_SIZE (buf)); size = GST_BUFFER_SIZE (buf) * 16; size -= size % 640; diff --git a/gst/siren/gstsirendec.h b/gst/siren/gstsirendec.h index 2006cbc7ab..bd1533b580 100644 --- a/gst/siren/gstsirendec.h +++ b/gst/siren/gstsirendec.h @@ -52,6 +52,7 @@ struct _GstSirenDec { GstElement parent; + /* Protected by stream lock */ SirenDecoder decoder; GstPad *sinkpad;