rtmpsink: Remove URL check for valid playpath.

The playpath is an optional component of the URL - don't require it.
This commit is contained in:
Jan Schmidt 2014-03-26 09:05:15 +11:00
parent 9adb1734cf
commit 6b784cf808

View file

@ -313,7 +313,7 @@ gst_rtmp_sink_uri_set_uri (GstURIHandler * handler, const gchar * uri,
AVal playpath, app;
if (!RTMP_ParseURL (uri, &protocol, &host, &port, &playpath, &app) ||
!host.av_len || !playpath.av_len) {
!host.av_len) {
GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE,
("Failed to parse URI %s", uri), (NULL));
g_set_error (error, GST_URI_ERROR, GST_URI_ERROR_BAD_URI,