Commit 5e9794a1 authored by Wim Taymans's avatar Wim Taymans

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.
parent 730ff798
...@@ -268,7 +268,7 @@ gst_videotestsrc_getcaps (GstPad * pad, GstCaps * caps) ...@@ -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 ());
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment