/* get a handle to the configuration of the media in the session */
media = gst_rtsp_session_get_media (session, client->media);
+ if (!media)
+ goto not_found;
gst_rtsp_session_media_stop (media);
{
return FALSE;
}
+not_found:
+ {
+ handle_generic_response (client, GST_RTSP_STS_NOT_FOUND, request);
+ return FALSE;
+ }
}
static gboolean
/* get a handle to the configuration of the media in the session */
media = gst_rtsp_session_get_media (session, client->media);
+ if (!media)
+ goto not_found;
gst_rtsp_session_media_pause (media);
g_object_unref (session);
{
return FALSE;
}
+not_found:
+ {
+ handle_generic_response (client, GST_RTSP_STS_NOT_FOUND, request);
+ return FALSE;
+ }
}
static gboolean
/* get a handle to the configuration of the media in the session */
media = gst_rtsp_session_get_media (session, client->media);
+ if (!media)
+ goto not_found;
/* wait for paused to get the caps */
ret = gst_rtsp_session_media_pause (media);
handle_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, request);
return FALSE;
}
+not_found:
+ {
+ handle_generic_response (client, GST_RTSP_STS_NOT_FOUND, request);
+ return FALSE;
+ }
}
static gboolean
/* get a handle to the configuration of the media in the session */
media = gst_rtsp_session_get_media (session, client->media);
+ if (!media)
+ goto not_found;
/* parse the stream we need to configure */
if (!(pos = strstr (uri, "stream=")))