mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
gst/law/: Fix caps memleaks (#166600).
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * gst/law/alaw-decode.c: (alawdec_link): * gst/law/alaw-encode.c: (alawenc_link): * gst/law/mulaw-decode.c: (mulawdec_link): * gst/law/mulaw-encode.c: (mulawenc_link): Fix caps memleaks (#166600).
This commit is contained in:
parent
b2a741ec31
commit
e23f9bb4e9
5 changed files with 36 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2005-02-08 Francis Labonte <francis_labonte@hotmail.com>
|
||||
|
||||
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/law/alaw-decode.c: (alawdec_link):
|
||||
* gst/law/alaw-encode.c: (alawenc_link):
|
||||
* gst/law/mulaw-decode.c: (mulawdec_link):
|
||||
* gst/law/mulaw-encode.c: (mulawenc_link):
|
||||
Fix caps memleaks (#166600).
|
||||
|
||||
2005-02-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/tarkin/mem.h:
|
||||
|
|
|
@ -118,6 +118,7 @@ alawdec_link (GstPad * pad, const GstCaps * caps)
|
|||
GstStructure *structure;
|
||||
const GValue *rate, *chans;
|
||||
GstCaps *base_caps;
|
||||
GstPadLinkReturn link_return;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
rate = gst_structure_get_value (structure, "rate");
|
||||
|
@ -140,7 +141,11 @@ alawdec_link (GstPad * pad, const GstCaps * caps)
|
|||
gst_structure_set_value (structure, "rate", rate);
|
||||
gst_structure_set_value (structure, "channels", chans);
|
||||
|
||||
return gst_pad_try_set_caps (otherpad, base_caps);
|
||||
link_return = gst_pad_try_set_caps (otherpad, base_caps);
|
||||
|
||||
gst_caps_free (base_caps);
|
||||
|
||||
return link_return;
|
||||
}
|
||||
|
||||
GType
|
||||
|
|
|
@ -160,6 +160,7 @@ alawenc_link (GstPad * pad, const GstCaps * caps)
|
|||
GstStructure *structure;
|
||||
const GValue *rate, *chans;
|
||||
GstCaps *base_caps;
|
||||
GstPadLinkReturn link_return;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
rate = gst_structure_get_value (structure, "rate");
|
||||
|
@ -182,7 +183,11 @@ alawenc_link (GstPad * pad, const GstCaps * caps)
|
|||
gst_structure_set_value (structure, "rate", rate);
|
||||
gst_structure_set_value (structure, "channels", chans);
|
||||
|
||||
return gst_pad_try_set_caps (otherpad, base_caps);
|
||||
link_return = gst_pad_try_set_caps (otherpad, base_caps);
|
||||
|
||||
gst_caps_free (base_caps);
|
||||
|
||||
return link_return;
|
||||
}
|
||||
|
||||
GType
|
||||
|
|
|
@ -95,6 +95,8 @@ mulawdec_link (GstPad * pad, const GstCaps * caps)
|
|||
GstStructure *structure;
|
||||
const GValue *rate, *chans;
|
||||
GstCaps *base_caps;
|
||||
GstPadLinkReturn link_return;
|
||||
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
rate = gst_structure_get_value (structure, "rate");
|
||||
|
@ -117,7 +119,12 @@ mulawdec_link (GstPad * pad, const GstCaps * caps)
|
|||
gst_structure_set_value (structure, "rate", rate);
|
||||
gst_structure_set_value (structure, "channels", chans);
|
||||
|
||||
return gst_pad_try_set_caps (otherpad, base_caps);
|
||||
link_return = gst_pad_try_set_caps (otherpad, base_caps);
|
||||
|
||||
gst_caps_free (base_caps);
|
||||
|
||||
return link_return;
|
||||
|
||||
}
|
||||
|
||||
GType
|
||||
|
|
|
@ -94,6 +94,7 @@ mulawenc_link (GstPad * pad, const GstCaps * caps)
|
|||
GstStructure *structure;
|
||||
const GValue *rate, *chans;
|
||||
GstCaps *base_caps;
|
||||
GstPadLinkReturn link_return;
|
||||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
rate = gst_structure_get_value (structure, "rate");
|
||||
|
@ -116,7 +117,11 @@ mulawenc_link (GstPad * pad, const GstCaps * caps)
|
|||
gst_structure_set_value (structure, "rate", rate);
|
||||
gst_structure_set_value (structure, "channels", chans);
|
||||
|
||||
return gst_pad_try_set_caps (otherpad, base_caps);
|
||||
link_return = gst_pad_try_set_caps (otherpad, base_caps);
|
||||
|
||||
gst_caps_free (base_caps);
|
||||
|
||||
return link_return;
|
||||
}
|
||||
|
||||
GType
|
||||
|
|
Loading…
Reference in a new issue