Modify while loop run always one time. 12/148612/2 accepted/tizen_4.0_unified tizen_4.0 tizen_4.0_tv accepted/tizen/4.0/unified/20170913.152909 submit/tizen_4.0/20170911.080400 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorHyunsoo <hance.park@samsung.com>
Fri, 8 Sep 2017 07:15:33 +0000 (16:15 +0900)
committerHyunsoo <hance.park@samsung.com>
Fri, 8 Sep 2017 07:22:15 +0000 (16:22 +0900)
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 <hance.park@samsung.com>
gst/rtsp-server/gstwfdmessage.c
packaging/gst-rtsp-server.spec

index de3bd7f..50c5f3d 100644 (file)
@@ -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;
index ce36005..f6bfc96 100644 (file)
@@ -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+