GstRTSPExtClientPrivate *priv = GST_RTSP_EXT_CLIENT_GET_PRIVATE (_client);
guint latest_resend_packets = 0;
- g_return_val_if_fail (priv != NULL, FALSE);
+ g_return_if_fail (priv != NULL);
latest_resend_packets = gst_rtsp_media_ext_get_resent_packets (priv->media);
GstWFDResult wfd_res = GST_WFD_EINVAL;
gboolean is_appended = FALSE;
- g_return_if_fail (client != NULL);
+ g_return_val_if_fail (client != NULL, NULL);
g_return_val_if_fail (data != NULL, NULL);
sink_user_agent = gst_rtsp_wfd_client_get_sink_user_agent (client);
GstWFDResult wfd_res = GST_WFD_EINVAL;
g_return_if_fail (ext_priv != NULL);
- g_return_val_if_fail (data != NULL, NULL);
+ g_return_if_fail (data != NULL);
wfd_res = gst_wfd_ext_message_new (&msg);
if (wfd_res != GST_WFD_OK) {
GstRTSPExtClientPrivate *priv = GST_RTSP_EXT_CLIENT_GET_PRIVATE (client);
g_return_if_fail (priv != NULL);
- g_return_val_if_fail (data != NULL, NULL);
+ g_return_if_fail (data != NULL);
return;
}
gchar *tmp = NULL;
GstRTSPExtClientPrivate *ext_priv = GST_RTSP_EXT_CLIENT_GET_PRIVATE (client);
GstWFDResult wfd_res = GST_WFD_EINVAL;
- gboolean is_appended = FALSE;
- g_return_if_fail (ext_priv != NULL);
+ g_return_val_if_fail (ext_priv != NULL, NULL);
g_return_val_if_fail (data != NULL, NULL);
wfd_res = gst_wfd_ext_message_new (&msg);
if (tmp) {
data = g_strconcat (data, tmp, NULL);
g_free (tmp);
- is_appended = TRUE;
} else {
GST_ERROR_OBJECT (client, "Failed to gst_wfd_ext_message_as_text");
goto error;
gst_wfd_ext_listen_media_constructed (client);
- if (is_appended == FALSE) {
- return NULL;
- } else {
- return data;
- };
-
return data;
+
error:
- if (tmp != NULL)
- g_free (tmp);
if (msg != NULL)
gst_wfd_ext_message_free (msg);
GstRTSPMediaExtPrivate *priv;
priv = _media->priv;
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail (priv != NULL);
pipeline = gst_rtsp_media_get_pipeline (media);
rtpbin = gst_rtsp_media_get_rtpbin (media);
GstRTSPMediaExtPrivate *priv;
priv = _media->priv;
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail (priv != NULL);
pipeline = gst_rtsp_media_get_pipeline (media);
rtpbin = gst_rtsp_media_get_rtpbin (media);
{
GstRTSPMediaExtPrivate *priv;
- g_return_val_if_fail (GST_IS_RTSP_MEDIA_EXT (media), 0);
+ g_return_if_fail (GST_IS_RTSP_MEDIA_EXT (media));
priv = media->priv;
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail (priv != NULL);
priv->retransmit_port = port;
}
{
GstRTSPMediaExtPrivate *priv;
- g_return_val_if_fail (GST_IS_RTSP_MEDIA_EXT (media), 0);
+ g_return_if_fail (GST_IS_RTSP_MEDIA_EXT (media));
priv = media->priv;
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail (priv != NULL);
priv->max_size_k = max_k;
priv->max_size_p = max_p;
{
GstRTSPMediaExtPrivate *priv;
- g_return_val_if_fail (GST_IS_RTSP_MEDIA_EXT (media), 0);
+ g_return_if_fail (GST_IS_RTSP_MEDIA_EXT (media));
priv = media->priv;
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail (priv != NULL);
priv->latency_mode = latency;
}
{
GstRTSPMediaExtPrivate *priv;
- g_return_val_if_fail (GST_IS_RTSP_MEDIA_EXT (media), 0);
+ g_return_if_fail (GST_IS_RTSP_MEDIA_EXT (media));
priv = media->priv;
- g_return_val_if_fail (priv != NULL, 0);
+ g_return_if_fail (priv != NULL);
g_object_set (G_OBJECT (priv->fecenc), "next-k", next_k, NULL);
g_object_set (G_OBJECT (priv->fecenc), "next-p", next_p, NULL);
{
GstRTSPMediaPrivate *priv;
- g_return_if_fail (GST_IS_RTSP_MEDIA (media));;
+ g_return_val_if_fail (GST_IS_RTSP_MEDIA (media), NULL);
priv = media->priv;
{
GstRTSPMediaPrivate *priv;
- g_return_if_fail (GST_IS_RTSP_MEDIA (media));;
+ g_return_val_if_fail (GST_IS_RTSP_MEDIA (media), NULL);
priv = media->priv;
Name: gst-rtsp-server
Summary: Multimedia Framework Library
Version: 1.6.1
-Release: 2
+Release: 3
Url: http://gstreamer.freedesktop.org/
Group: System/Libraries
License: LGPL-2.0+