After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762005 - rtspsrc: Cannot get location property value
rtspsrc: Cannot get location property value
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.6.3
Other Linux
: Normal minor
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-13 20:01 UTC by Julian Bouzas
Modified: 2016-02-15 00:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Julian Bouzas 2016-02-13 20:01:39 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;
}
Comment 1 Tim-Philipp Müller 2016-02-15 00:39:31 UTC
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)