amc: Do not use g_log() for criticals
authorXavier Claessens <xavier.claessens@collabora.com>
Fri, 16 Aug 2019 15:01:05 +0000 (11:01 -0400)
committerXavier Claessens <xavier.claessens@collabora.com>
Tue, 20 Aug 2019 12:53:55 +0000 (08:53 -0400)
sys/androidmedia/jni/gstamcsurface.c

index f851e176ce7d0b0333b1adfde5fa125dbeff6a95..2c1d93743fc5cd8a6af7c5b70449fe514a890e23 100644 (file)
@@ -90,8 +90,8 @@ gst_amc_surface_class_init (GstAmcSurfaceClass * klass)
   gobject_class->dispose = gst_amc_surface_dispose;
 
   if (!_cache_java_class (klass, &err)) {
-    g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
-        "Could not cache java class android/view/Surface: %s", err->message);
+    GST_ERROR ("Could not cache java class android/view/Surface: %s",
+        err->message);
     g_clear_error (&err);
   }
 }