rtmpsrc: fix wrong use of GST_ELEMENT_ERROR
This commit is contained in:
parent
315c690347
commit
d6c908ea59
@ -538,7 +538,7 @@ gst_rtmp_src_start (GstBaseSrc * basesrc)
|
|||||||
src->rtmp = RTMP_Alloc ();
|
src->rtmp = RTMP_Alloc ();
|
||||||
RTMP_Init (src->rtmp);
|
RTMP_Init (src->rtmp);
|
||||||
if (!RTMP_SetupURL (src->rtmp, uri_copy)) {
|
if (!RTMP_SetupURL (src->rtmp, uri_copy)) {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, NULL,
|
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (NULL),
|
||||||
("Failed to setup URL '%s'", src->uri));
|
("Failed to setup URL '%s'", src->uri));
|
||||||
g_free (uri_copy);
|
g_free (uri_copy);
|
||||||
RTMP_Free (src->rtmp);
|
RTMP_Free (src->rtmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user