diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-11-18 16:31:30 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-12-03 09:50:31 +0200 |
commit | 20c173bada88756b70e9cbbfd2032c9afc45dd4d (patch) | |
tree | 54113512bba6552570aa52a61a0256aad508424a /gst | |
parent | d2d42082c3034bf28336fe434c85df460ce1c537 (diff) | |
download | gstreamer-20c173bada88756b70e9cbbfd2032c9afc45dd4d.tar.gz |
padtemplate: the supplied caps may not be NULL
There is a earlier g_return_val_if_fail check. Also
gst_static_pad_template_get does not have such a check.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstpadtemplate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index 5b766eb675..6a18c512b5 100644 --- a/gst/gstpadtemplate.c +++ b/gst/gstpadtemplate.c @@ -365,8 +365,7 @@ gst_pad_template_new (const gchar * name_template, "name", name_template, "name-template", name_template, "direction", direction, "presence", presence, "caps", caps, NULL); - if (caps) - gst_caps_unref (caps); + gst_caps_unref (caps); return new; } |