if (!sessmedia)
goto not_found;
+ /* only aggregate control for now.. */
+ if (path[matched] != '\0')
+ goto no_aggregate;
+
state->sessmedia = sessmedia;
/* we emit the signal before closing the connection */
send_generic_response (client, GST_RTSP_STS_NOT_FOUND, state);
return FALSE;
}
+no_aggregate:
+ {
+ GST_ERROR ("client %p: no aggregate path %s", client, path);
+ send_generic_response (client,
+ GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED, state);
+ return FALSE;
+ }
}
static GstRTSPResult
if (!sessmedia)
goto not_found;
+ if (path[matched] != '\0')
+ goto no_aggregate;
+
state->sessmedia = sessmedia;
rtspstate = gst_rtsp_session_media_get_rtsp_state (sessmedia);
send_generic_response (client, GST_RTSP_STS_NOT_FOUND, state);
return FALSE;
}
+no_aggregate:
+ {
+ GST_ERROR ("client %p: no aggregate path %s", client, path);
+ send_generic_response (client,
+ GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED, state);
+ return FALSE;
+ }
invalid_state:
{
GST_ERROR ("client %p: not PLAYING or RECORDING", client);
if (!sessmedia)
goto not_found;
+ if (path[matched] != '\0')
+ goto no_aggregate;
+
state->sessmedia = sessmedia;
state->media = media = gst_rtsp_session_media_get_media (sessmedia);
send_generic_response (client, GST_RTSP_STS_NOT_FOUND, state);
return FALSE;
}
+no_aggregate:
+ {
+ GST_ERROR ("client %p: no aggregate path %s", client, path);
+ send_generic_response (client,
+ GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED, state);
+ return FALSE;
+ }
invalid_state:
{
GST_ERROR ("client %p: not PLAYING or READY", client);