ref the caps when returning it as the result of a getcaps function as we're reusing it.

Original commit message from CVS:
ref the caps when returning it as the result of a getcaps function as we're
reusing it.
This commit is contained in:
Wim Taymans 2003-02-11 20:53:01 +00:00
parent 730ff79841
commit 5e9794a11a

View file

@ -268,7 +268,7 @@ gst_videotestsrc_getcaps (GstPad * pad, GstCaps * caps)
"width", GST_PROPS_INT (640),
"height", GST_PROPS_INT (480));
} else {
return gst_videotestsrc_get_capslist ();
return gst_caps_ref (gst_videotestsrc_get_capslist ());
}
}