modify if condition of 'GST_GET_PARAMETER' and 'GST_SET_PARAMETER' for g_free(url)
authorHyunsoo, Park <hance.park@samsung.com>
Wed, 11 May 2016 07:20:25 +0000 (16:20 +0900)
committerHyunsoo, Park <hance.park@samsung.com>
Thu, 12 May 2016 04:26:31 +0000 (13:26 +0900)
Change-Id: If3ddfadd79273c3941f8fc57f3f4a2c82a5f8824
Signed-off-by: Hyunsoo, Park <hance.park@samsung.com>
gst/rtsp-server/rtsp-client-wfd.c

index 89e4704..f6c9f93 100644 (file)
@@ -1775,9 +1775,11 @@ gst_prepare_request (GstRTSPWFDClient * client, GstRTSPMessage * request,
 
   /* initialize the request */
   res = gst_rtsp_message_init_request (request, method, url);
-  if (method == GST_RTSP_GET_PARAMETER || GST_RTSP_SET_PARAMETER) {
+
+  if (method == GST_RTSP_GET_PARAMETER || method == GST_RTSP_SET_PARAMETER) {
     g_free(url);
   }
+
   if (res < 0) {
     GST_ERROR ("init request failed");
     return res;