diff options
Diffstat (limited to 'gst/law')
-rw-r--r-- | gst/law/alaw-decode.c | 2 | ||||
-rw-r--r-- | gst/law/alaw-encode.c | 6 | ||||
-rw-r--r-- | gst/law/mulaw-decode.c | 2 | ||||
-rw-r--r-- | gst/law/mulaw-encode.c | 4 |
4 files changed, 6 insertions, 8 deletions
diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index 7cf7a37f..e7496e2c 100644 --- a/gst/law/alaw-decode.c +++ b/gst/law/alaw-decode.c @@ -100,7 +100,7 @@ alawdec_getcaps (GstPad * pad) structure = gst_caps_get_structure (othercaps, 0); orate = gst_structure_get_value (structure, "rate"); ochans = gst_structure_get_value (structure, "channels"); - if (!rate || !chans) + if (!orate || !ochans) goto done; structure = gst_caps_get_structure (base_caps, 0); diff --git a/gst/law/alaw-encode.c b/gst/law/alaw-encode.c index e7bf33e5..d0bff55e 100644 --- a/gst/law/alaw-encode.c +++ b/gst/law/alaw-encode.c @@ -119,9 +119,7 @@ alawenc_getcaps (GstPad * pad) { GstALawEnc *alawenc; GstPad *otherpad; - GstCaps *base_caps, *othercaps, *result; - GstStructure *structure; - const GValue *rate, *chans; + GstCaps *base_caps, *othercaps; alawenc = GST_ALAWENC (GST_PAD_PARENT (pad)); @@ -144,7 +142,7 @@ alawenc_getcaps (GstPad * pad) structure = gst_caps_get_structure (othercaps, 0); orate = gst_structure_get_value (structure, "rate"); ochans = gst_structure_get_value (structure, "channels"); - if (!rate || !chans) + if (!orate || !ochans) goto done; structure = gst_caps_get_structure (base_caps, 0); diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index 23df98e3..51509356 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -75,7 +75,7 @@ mulawdec_getcaps (GstPad * pad) structure = gst_caps_get_structure (othercaps, 0); orate = gst_structure_get_value (structure, "rate"); ochans = gst_structure_get_value (structure, "channels"); - if (!rate || !chans) + if (!orate || !ochans) goto done; structure = gst_caps_get_structure (base_caps, 0); diff --git a/gst/law/mulaw-encode.c b/gst/law/mulaw-encode.c index 4a2576ac..e17b5193 100644 --- a/gst/law/mulaw-encode.c +++ b/gst/law/mulaw-encode.c @@ -75,7 +75,7 @@ mulawenc_getcaps (GstPad * pad) structure = gst_caps_get_structure (othercaps, 0); orate = gst_structure_get_value (structure, "rate"); ochans = gst_structure_get_value (structure, "channels"); - if (!rate || !chans) + if (!orate || !ochans) goto done; structure = gst_caps_get_structure (base_caps, 0); @@ -210,7 +210,7 @@ gst_mulawenc_chain (GstPad * pad, GstBuffer * buffer) GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buffer); GST_BUFFER_DURATION (outbuf) = GST_BUFFER_DURATION (buffer); gst_buffer_set_caps (outbuf, GST_PAD_CAPS (mulawenc->srcpad)); - mulaw_data = (gint8 *) GST_BUFFER_DATA (outbuf); + mulaw_data = (guint8 *) GST_BUFFER_DATA (outbuf); mulaw_encode (linear_data, mulaw_data, GST_BUFFER_SIZE (outbuf)); |