From 8e5c22387182054712cae9c547566b30d42dbbc2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 17 Apr 2002 00:18:04 +0000 Subject: [PATCH] fix bug with --gst-fatal-warnings when exclude_args is NULL Original commit message from CVS: fix bug with --gst-fatal-warnings when exclude_args is NULL --- tools/gst-launch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 7536ad7ce1..655d0095eb 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -174,7 +174,7 @@ main(int argc, char *argv[]) if (!silent) { - gchar **exclude_list = g_strsplit (exclude_args, ",", 0); + gchar **exclude_list = exclude_args ? g_strsplit (exclude_args, ",", 0) : NULL; g_signal_connect (pipeline, "deep_notify", G_CALLBACK (property_change_callback), exclude_list); } g_signal_connect (pipeline, "error", G_CALLBACK (error_callback), NULL);