[MOVED FROM GST-P-FARSIGHT] Remove useless checks, document locking

20080704222103-3e2dc-47a7f49c414f98a188ffc42b07189daf5147483b.gz
This commit is contained in:
Olivier Crete 2008-07-04 22:21:03 +00:00 committed by Edward Hervey
parent ae01ec1980
commit 8fcd95267d
2 changed files with 2 additions and 8 deletions

View file

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

View file

@ -52,6 +52,7 @@ struct _GstSirenDec
{
GstElement parent;
/* Protected by stream lock */
SirenDecoder decoder;
GstPad *sinkpad;