ges: Print initialize error reasons
authorSeungha Yang <seungha.yang@navercorp.com>
Mon, 28 Jan 2019 07:34:15 +0000 (16:34 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Mon, 28 Jan 2019 08:35:04 +0000 (17:35 +0900)
ges/ges.c

index 3bfc044..38a4780 100644 (file)
--- a/ges/ges.c
+++ b/ges/ges.c
@@ -78,11 +78,16 @@ ges_init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
   }
 
   uriasset_klass = g_type_class_ref (GES_TYPE_URI_CLIP_ASSET);
-  if (!uriasset_klass || !uriasset_klass->discoverer)
+  if (!uriasset_klass || !uriasset_klass->discoverer) {
+    GST_ERROR ("missing uri asset class %p or discoverer %p", uriasset_klass,
+        uriasset_klass ? uriasset_klass->discoverer : NULL);
     goto failed;
+  }
 
-  if (!uriasset_klass->sync_discoverer)
+  if (!uriasset_klass->sync_discoverer) {
+    GST_ERROR ("missing sync discoverer");
     goto failed;
+  }
 
   nlecomposition_factory = gst_element_factory_find ("nlecomposition");
   if (!nlecomposition_factory) {