From: Hyunsoo Date: Fri, 8 Sep 2017 07:15:33 +0000 (+0900) Subject: Modify while loop run always one time. X-Git-Tag: accepted/tizen/4.0/unified/20170913.152909^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_4.0_tv;p=platform%2Fupstream%2Fgst-rtsp-server.git Modify while loop run always one time. In 'gst_wfd_message_get_contentprotection_type' api, while loop which is always run one time logically. So i modified it. For testing, 1. Make 'priv->protection_enabled' variable 'TRUE' which is in 'gst_rtsp_wfd_client_init' api. 2. Unlock if statement for 'msg->content_protection' (if 0 -> 1). 3. Find log in it on Miracast server log. Change-Id: I62588bf47ec4893b6ced0801c297e1f34fdc028c Signed-off-by: Hyunsoo --- diff --git a/gst/rtsp-server/gstwfdmessage.c b/gst/rtsp-server/gstwfdmessage.c index de3bd7f..50c5f3d 100644 --- a/gst/rtsp-server/gstwfdmessage.c +++ b/gst/rtsp-server/gstwfdmessage.c @@ -2597,10 +2597,9 @@ gst_wfd_message_get_contentprotection_type (GstWFDMessage * msg, if (msg->content_protection->hdcp2_spec->TCPPort) { result = strtok_r (msg->content_protection->hdcp2_spec->TCPPort, "=", &ptr); - while (result != NULL && ptr != NULL) { + if (result != NULL && ptr != NULL) { result = strtok_r (NULL, "=", &ptr); *TCPPort = atoi (result); - break; } } else { *TCPPort = 0; diff --git a/packaging/gst-rtsp-server.spec b/packaging/gst-rtsp-server.spec index ce36005..f6bfc96 100644 --- a/packaging/gst-rtsp-server.spec +++ b/packaging/gst-rtsp-server.spec @@ -1,7 +1,7 @@ Name: gst-rtsp-server Summary: Multimedia Framework Library Version: 1.6.1 -Release: 18 +Release: 19 Url: http://gstreamer.freedesktop.org/ Group: System/Libraries License: LGPL-2.0+