diff options
Diffstat (limited to 'gst/videotestsrc/videotestsrc.c')
-rw-r--r-- | gst/videotestsrc/videotestsrc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index 4b3065b43..e1fa73c27 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -593,7 +593,6 @@ gst_videotestsrc_black (GstVideotestsrc * v, unsigned char *dest, int w, int h) paintinfo pi; paintinfo *p = π struct fourcc_list_struct *fourcc; - struct vts_color_struct color; p->width = w; p->height = h; @@ -604,10 +603,10 @@ gst_videotestsrc_black (GstVideotestsrc * v, unsigned char *dest, int w, int h) fourcc->paint_setup (p, dest); p->paint_hline = fourcc->paint_hline; - color = vts_colors[COLOR_BLACK]; + p->color = vts_colors + COLOR_BLACK; - for (i = 0; i < w; i++) { - p->paint_hline (p, i, 0, w); + for (i = 0; i < h; i++) { + p->paint_hline (p, 0, i, w); } } |