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:
parent
730ff79841
commit
5e9794a11a
@ -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 ());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user