tests: fix compiler warning in new miniobject test
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 4 May 2011 14:29:42 +0000 (15:29 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 4 May 2011 14:30:41 +0000 (15:30 +0100)
gst/gstminiobject.c: In function ‘test_dup_null_mini_object’:
gst/gstminiobject.c:459:7: warning: assignment from incompatible pointer type

tests/check/gst/gstminiobject.c

index 5c296db..9b9c1cd 100644 (file)
@@ -450,14 +450,14 @@ GST_END_TEST;
 GST_START_TEST (test_dup_null_mini_object)
 {
   GValue value = { 0, };
-  GstBuffer *buf;
+  GstMiniObject *mo;
 
   g_value_init (&value, GST_TYPE_BUFFER);
 
   gst_value_set_mini_object (&value, NULL);
 
-  buf = gst_value_dup_mini_object (&value);
-  g_assert (buf == NULL);
+  mo = gst_value_dup_mini_object (&value);
+  g_assert (mo == NULL);
 
   g_value_unset (&value);
 }