libdrm-meson: remove annoying print [1/1]

PD#SWPL-96545

Problem:
too many exceptions from libdrm-meson printing when live tv playing

Solution:
remove unnecessary printf

Verify:
t5w

Change-Id: I99f47443d132c4ae5aadc7de6a4f17495abd4454
Signed-off-by: limin.tian <limin.tian@amlogic.com>
diff --git a/meson/libdrm_meson_connector.c b/meson/libdrm_meson_connector.c
index 4f53588..95e9c59 100644
--- a/meson/libdrm_meson_connector.c
+++ b/meson/libdrm_meson_connector.c
@@ -56,7 +56,6 @@
 	   }
 	}
 	if ( !conn ) {
-		printf("\n mesonConnectorCreate: unable to get connector for drmfd (%d) type(%d)\n", drmFd,type);
 		ret = NULL;
 		goto exit;
 	}
@@ -236,7 +235,7 @@
 {
 	int ret = -1;
 	if ( !connector ) {
-			printf("\n mesonConnectorGetEdidBlob:invalid parameters\n");
+			printf("\n mesonConnectorGetConnectState:invalid parameters\n");
 	} else {
 		ret = connector->connection;
 	}
@@ -246,7 +245,7 @@
 {
 	int ret = -1;
 	if ( !connector ) {
-		printf("\n mesonConnectorGetEdidBlob:invalid parameters\n");
+		printf("\n mesonConnectorGetCRTCId:invalid parameters\n");
 	} else {
 		ret = connector->crtc_id;
 	}
diff --git a/meson/meson_drm_display.c b/meson/meson_drm_display.c
index da3f317..36036ea 100644
--- a/meson/meson_drm_display.c
+++ b/meson/meson_drm_display.c
@@ -590,7 +590,8 @@
     struct mesonConnector* connectorTV = NULL;
     int HDMIconnected = 0;
     connectorHDMI = mesonConnectorCreate(drmFd, DRM_MODE_CONNECTOR_HDMIA);
-    HDMIconnected = mesonConnectorGetConnectState(connectorHDMI);
+    if (connectorHDMI)
+        HDMIconnected = mesonConnectorGetConnectState(connectorHDMI);
     if (HDMIconnected == 1) {
         return connectorHDMI;
     } else {