summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/siren/gstsirendec.c9
-rw-r--r--gst/siren/gstsirendec.h1
2 files changed, 2 insertions, 8 deletions
diff --git a/gst/siren/gstsirendec.c b/gst/siren/gstsirendec.c
index e74129ae..e9d0a2f6 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 2006cbc7..bd1533b5 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;