From: Wim T. <wt...@us...> - 2003-02-11 20:53:15
|
CVS Root: /cvsroot/gstreamer Module: gst-plugins Changes by: wtay Date: Tue Feb 11 2003 12:53:14 PST Log message: ref the caps when returning it as the result of a getcaps function as we're reusing it. Modified files: gst/videotestsrc: gstvideotestsrc.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/videotestsrc/gstvideotestsrc.c.diff?r1=1.15&r2=1.16 ====Begin Diffs==== Index: gstvideotestsrc.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/gst/videotestsrc/gstvideotestsrc.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gstvideotestsrc.c 10 Jan 2003 13:38:28 -0000 1.15 +++ gstvideotestsrc.c 11 Feb 2003 20:53:01 -0000 1.16 @@ -268,7 +268,7 @@ "width", GST_PROPS_INT (640), "height", GST_PROPS_INT (480)); } else { - return gst_videotestsrc_get_capslist (); + return gst_caps_ref (gst_videotestsrc_get_capslist ()); } } |