Fix misordered parameter, Height <-> Width
[platform/upstream/gst-rtsp-server.git] / gst / rtsp-server / rtsp-client-wfd.c
index 96cb419..f7ea3d1 100644 (file)
@@ -1271,7 +1271,11 @@ tcp_retry:
   if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &bsize, (socklen_t)rn) < 0) {
     GST_ERROR_OBJECT(client, "setsockopt failed");
   } else {
-    getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &bsize, (socklen_t *)&rn);
+    if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &bsize, (socklen_t *)&rn) < 0) {
+      char buf[256] = {0, };
+      strerror_r(errno, buf, sizeof(buf));
+      GST_ERROR_OBJECT(client, "getsockopt failed : [%s]", buf);
+    }
     GST_WARNING_OBJECT(client, "New Send buf size : %d\n", bsize);
   }
 
@@ -2571,7 +2575,7 @@ _set_wfd_message_body (GstRTSPWFDClient * client, GstWFDMessageType msg_type,
           priv->direct_detected_video_codec,
           priv->video_native_resolution, GST_WFD_CEA_UNKNOWN, tcCEAResolution,
           tcVESAResolution, tcHHResolution, tcProfile, tcLevel, priv->cvLatency,
-          priv->cMaxWidth, priv->cMaxHeight, priv->cmin_slice_size,
+          priv->cMaxHeight, priv->cMaxWidth, priv->cmin_slice_size,
           priv->cslice_enc_params, priv->cframe_rate_control);
 
     if (wfd_res != GST_WFD_OK) {