Add new function for hdcp 08/68608/2
authorSeokHoon Lee <andy.shlee@samsung.com>
Mon, 9 May 2016 01:16:27 +0000 (10:16 +0900)
committerSeokHoon Lee <andy.shlee@samsung.com>
Mon, 16 May 2016 08:39:30 +0000 (17:39 +0900)
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I321e6eccf25498c74b1222dfb3cbfcd894efb920

gst/rtsp-server/rtsp-client-wfd.c
gst/rtsp-server/rtsp-client-wfd.h

index 6833641..9d6dbae 100644 (file)
@@ -2760,6 +2760,24 @@ gst_rtsp_wfd_client_set_protection_enabled(GstRTSPWFDClient *client, gboolean en
   priv->protection_enabled = enable;
 }
 
+void
+gst_rtsp_wfd_client_set_hdcp_version(GstRTSPWFDClient *client, GstWFDHDCPProtection version)
+{
+  GstRTSPWFDClientPrivate *priv = GST_RTSP_WFD_CLIENT_GET_PRIVATE (client);
+  g_return_if_fail (priv != NULL);
+
+  priv->hdcp_version = version;
+}
+
+void
+gst_rtsp_wfd_client_set_hdcp_port(GstRTSPWFDClient *client, guint32 port)
+{
+  GstRTSPWFDClientPrivate *priv = GST_RTSP_WFD_CLIENT_GET_PRIVATE (client);
+  g_return_if_fail (priv != NULL);
+
+  priv->hdcp_tcpport = port;
+}
+
 void gst_rtsp_wfd_client_set_keep_alive_flag(GstRTSPWFDClient *client, gboolean flag)
 {
   GstRTSPWFDClientPrivate *priv = GST_RTSP_WFD_CLIENT_GET_PRIVATE (client);
index f9a836e..5cbf650 100644 (file)
@@ -172,6 +172,8 @@ void gst_rtsp_wfd_client_set_edid_supported(GstRTSPWFDClient *client, gboolean s
 void gst_rtsp_wfd_client_set_edid_hresolution(GstRTSPWFDClient *client, guint32 reso);
 void gst_rtsp_wfd_client_set_edid_vresolution(GstRTSPWFDClient *client, guint32 reso);
 void gst_rtsp_wfd_client_set_protection_enabled(GstRTSPWFDClient *client, gboolean enable);
+void gst_rtsp_wfd_client_set_hdcp_version(GstRTSPWFDClient *client, GstWFDHDCPProtection version);
+void gst_rtsp_wfd_client_set_hdcp_port(GstRTSPWFDClient *client, guint32 port);
 void gst_rtsp_wfd_client_set_keep_alive_flag(GstRTSPWFDClient *client, gboolean flag);
 void gst_rtsp_wfd_client_set_aud_codec(GstRTSPWFDClient *client, guint acodec);
 void gst_rtsp_wfd_client_set_audio_channels(GstRTSPWFDClient *client, guint channels);