GNOME Bugzilla – Bug 762005
rtspsrc: Cannot get location property value
Last modified: 2016-02-15 00:39:31 UTC
Hi, It is not possible to get rtspsrc's location value with gstreamer 1.6.3. The following code prints null instead of "value". #include <gst/gst.h> int main(int argc, char *argv[]) { gst_init(&argc, &argv); GstElement *element = gst_element_factory_make("rtspsrc", NULL); g_object_set(G_OBJECT(element), "location", "value", NULL); gchar *location; g_object_get(G_OBJECT(element), "location", &location, NULL); g_print("%s\n", location); g_free(location); gst_object_unref(GST_OBJECT(element)); gst_deinit(); return 0; }
It should work if you pass a valid RTSP uri as location property in the first place. rtspsrc gstrtspsrc.c:7877:gst_rtspsrc_uri_set_uri:<rtspsrc0> Not a valid RTSP url 'value' (-2)