mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ gst_videotestsrc_getcaps (GstPad * pad, GstCaps * caps)
|
||||||
"width", GST_PROPS_INT (640),
|
"width", GST_PROPS_INT (640),
|
||||||
"height", GST_PROPS_INT (480));
|
"height", GST_PROPS_INT (480));
|
||||||
} else {
|
} else {
|
||||||
return gst_videotestsrc_get_capslist ();
|
return gst_caps_ref (gst_videotestsrc_get_capslist ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue