mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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;
|
gint decode_ret = 0;
|
||||||
guint size = 0;
|
guint size = 0;
|
||||||
|
|
||||||
GST_LOG_OBJECT (dec, "Transform");
|
GST_LOG_OBJECT (dec, "Decoding buffer of size %d", GST_BUFFER_SIZE (buf));
|
||||||
|
|
||||||
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));
|
|
||||||
|
|
||||||
size = GST_BUFFER_SIZE (buf) * 16;
|
size = GST_BUFFER_SIZE (buf) * 16;
|
||||||
size -= size % 640;
|
size -= size % 640;
|
||||||
|
|
|
@ -52,6 +52,7 @@ struct _GstSirenDec
|
||||||
{
|
{
|
||||||
GstElement parent;
|
GstElement parent;
|
||||||
|
|
||||||
|
/* Protected by stream lock */
|
||||||
SirenDecoder decoder;
|
SirenDecoder decoder;
|
||||||
|
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
|
Loading…
Reference in a new issue