rtsp-server:wfd: Fix build error for gcc upgrade 59/312259/3 accepted/tizen/unified/20240611.123015 accepted/tizen/unified/dev/20240620.010737 accepted/tizen/unified/toolchain/20240610.172554 accepted/tizen/unified/x/20240610.223147 accepted/tizen/unified/x/asan/20240625.092320
authorEunhye Choi <eunhae1.choi@samsung.com>
Wed, 5 Jun 2024 09:39:04 +0000 (18:39 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Wed, 5 Jun 2024 09:43:22 +0000 (18:43 +0900)
- Fix the incompatible pointer type error

Change-Id: I6ef04f6d1587b112abe97a8e680ac8f61b54f573

packaging/gstreamer.spec
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-client-wfd.c
subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-server-wfd.c

index 70f3172ed47fb821ef6421b64bb89e8f27501d7f..32adaf30660886e7aca0bd7ad161bd8964dfd391 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.22.8
-Release:        9
+Release:        10
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 9cdd48012515390e76f19b026780790af06506dc..ac5d69f169cebad872cb638c8aa6376bc1f2d31e 100644 (file)
@@ -516,7 +516,7 @@ static void
 on_rtcp_stats (GstRTSPStream * stream, GstStructure * stats,
     GstRTSPClient * client)
 {
-  GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (client);
+  GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (GST_RTSP_WFD_CLIENT (client));
 
   guint fraction_lost, exthighestseq, jitter, lsr, dlsr, rtt;
   gint packetslost;
@@ -556,11 +556,11 @@ wfd_configure_client_media (GstRTSPClient * client, GstRTSPMedia * media,
     GstRTSPStream * stream, GstRTSPContext * ctx)
 {
   if (media) {
-    GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (client);
+    GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (GST_RTSP_WFD_CLIENT (client));
     priv->media = media;
   }
   if (stream) {
-    GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (client);
+    GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (GST_RTSP_WFD_CLIENT (client));
     if (priv)
       priv->stats.stream = stream;
     g_signal_connect (stream, "rtcp-statistics", (GCallback) on_rtcp_stats,
@@ -1071,7 +1071,7 @@ static void
 handle_wfd_play (GstRTSPClient * client, GstRTSPContext * ctx)
 {
   GstRTSPWFDClient *_client = GST_RTSP_WFD_CLIENT (client);
-  GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (client);
+  GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (_client);
 
   g_return_if_fail (priv != NULL);
 
@@ -1465,7 +1465,7 @@ handle_wfd_response (GstRTSPClient * client, GstRTSPContext * ctx)
   GstWFDMessage *msg = NULL;
 
   GstRTSPWFDClient *_client = GST_RTSP_WFD_CLIENT (client);
-  GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (client);
+  GstRTSPWFDClientPrivate *priv = gst_rtsp_wfd_client_get_instance_private (_client);
 
   g_return_if_fail (priv != NULL);
 
index 379a0968520440e6e5fc411609d10008c01c0e29..d19259f24df5ba38f87b5a2d9adb4f31048f5008 100644 (file)
@@ -215,7 +215,7 @@ create_client_wfd (GstRTSPServer * server)
   GstRTSPSessionPool *session_pool = NULL;
   GstRTSPMountPoints *mount_points = NULL;
   GstRTSPAuth *auth = NULL;
-  GstRTSPWFDServerPrivate *priv = gst_rtsp_wfd_server_get_instance_private (server);
+  GstRTSPWFDServerPrivate *priv = gst_rtsp_wfd_server_get_instance_private (GST_RTSP_WFD_SERVER (server));
 
   g_return_val_if_fail (priv != NULL, NULL);