From b43121e061689cc9443bd80438d67c1052972154 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 21 Jun 2011 12:52:23 +0200 Subject: [PATCH] videotestsrc: small cleanups --- gst/videotestsrc/videotestsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index 9089cb1..8a589b7 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -361,7 +361,7 @@ paintrect_find_format (const gchar * find_format) int i; for (i = 0; i < n_formats; i++) { - if (strcmp (find_format, format_list[i].format) == 0) { + if (g_str_equal (find_format, format_list[i].format)) { return format_list + i; } } @@ -374,7 +374,7 @@ paintrect_find_name (const char *name) int i; for (i = 0; i < n_formats; i++) { - if (strcmp (name, format_list[i].name) == 0) { + if (g_str_equal (name, format_list[i].name)) { return format_list + i; } } -- 2.7.4