mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
[MOVED FROM GST-P-FARSIGHT] Remove useless checks, document locking
20080704222103-3e2dc-47a7f49c414f98a188ffc42b07189daf5147483b.gz
This commit is contained in:
parent
ae01ec1980
commit
8fcd95267d
2 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -52,6 +52,7 @@ struct _GstSirenDec
|
|||
{
|
||||
GstElement parent;
|
||||
|
||||
/* Protected by stream lock */
|
||||
SirenDecoder decoder;
|
||||
|
||||
GstPad *sinkpad;
|
||||
|
|
Loading…
Reference in a new issue