Fix misordered parameter, Height <-> Width 04/198104/3 accepted/tizen/unified/20190128.061547 submit/tizen/20190123.011938
authorSeokHoon LEE <andy.shlee@samsung.com>
Mon, 21 Jan 2019 01:58:19 +0000 (10:58 +0900)
committerSeokHoon LEE <andy.shlee@samsung.com>
Mon, 21 Jan 2019 09:02:33 +0000 (18:02 +0900)
- Change mis ordered parameter.
- Add failure log for getsockopt

Change-Id: I75806d83e44142430dc58a1ae0ee36bd4d45b141
Signed-off-by: SeokHoon LEE <andy.shlee@samsung.com>
gst/rtsp-server/rtsp-client-wfd.c
packaging/gst-rtsp-server.spec

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) {
index c073b90..9c9abf9 100644 (file)
@@ -1,7 +1,7 @@
 Name:       gst-rtsp-server
 Summary:    Multimedia Framework Library
 Version:    1.12.2
-Release:    7
+Release:    8
 Url:        http://gstreamer.freedesktop.org/
 Group:      System/Libraries
 License:    LGPL-2.0+