From 1d9a7781d4caefb6409501c88118ef15497fb2f7 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Wed, 16 May 2001 04:07:33 +0000 Subject: [PATCH] fix a couple warnings Original commit message from CVS: fix a couple warnings --- test/videotest.c | 8 +++++--- test/wave.c | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/videotest.c b/test/videotest.c index 9c08566460..d380929805 100644 --- a/test/videotest.c +++ b/test/videotest.c @@ -31,9 +31,9 @@ int main(int argc,char *argv[]) { bin = gst_bin_new("bin"); srcfactory = gst_elementfactory_find("v4lsrc"); - g_return_if_fail(srcfactory != NULL); + g_return_val_if_fail(srcfactory != NULL,-1); videosinkfactory = gst_elementfactory_find("videosink"); - g_return_if_fail(videosinkfactory != NULL); + g_return_val_if_fail(videosinkfactory != NULL,-1); src = gst_elementfactory_create(srcfactory,"src"); gtk_object_set(GTK_OBJECT(src),"format",3,NULL); @@ -100,10 +100,12 @@ int main(int argc,char *argv[]) { g_idle_add(idle_func,bin); gtk_main(); + + return 0; } gboolean idle_func(gpointer data) { - static int i=0; + //static int i=0; //g_print("pushing %d\n",i++); gst_bin_iterate(GST_BIN(data)); return TRUE; diff --git a/test/wave.c b/test/wave.c index cacfd03069..d27d9b7346 100644 --- a/test/wave.c +++ b/test/wave.c @@ -51,6 +51,8 @@ int main(int argc,char *argv[]) { g_idle_add(idle_func,bin); gtk_main(); + + return 0; } gboolean idle_func(gpointer data) {