summaryrefslogtreecommitdiffstats
path: root/gst/debug/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/debug/tests.c')
-rw-r--r--gst/debug/tests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/debug/tests.c b/gst/debug/tests.c
index 03bca28b..d3324f32 100644
--- a/gst/debug/tests.c
+++ b/gst/debug/tests.c
@@ -539,7 +539,9 @@ md5_get_value (gpointer test, GValue * value)
{
MD5Test *ctx = test;
- if (ctx->result[0] == 0) {
+ if (!ctx) {
+ g_value_set_string (value, "---");
+ } else if (ctx->result[0] == 0) {
gchar *str = g_new (gchar, 33);
str[32] = 0;