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 779855 - shmsrc: add uri handler
shmsrc: add uri handler
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.10.4
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 779765
Blocks:
 
 
Reported: 2017-03-10 13:48 UTC by Marc Leeman
Modified: 2018-11-03 14:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add simple URI interface (2.74 KB, patch)
2017-03-10 13:48 UTC, Marc Leeman
needs-work Details | Review
rework (5.22 KB, patch)
2017-03-13 15:24 UTC, Marc Leeman
none Details | Review
g_value_take_string (5.19 KB, patch)
2017-03-14 12:15 UTC, Marc Leeman
none Details | Review
[PATCH] Add uri handler for shmsrc (5.20 KB, patch)
2018-10-27 11:46 UTC, Marc Leeman
none Details | Review

Description Marc Leeman 2017-03-10 13:48:08 UTC
Created attachment 347640 [details] [review]
Add simple URI interface

Add uri handler (shm://)
Comment 1 Olivier Crête 2017-03-10 21:02:25 UTC
Review of attachment 347640 [details] [review]:

::: sys/shm/gstshmsrc.c
@@ +485,3 @@
+gst_shm_src_uri_get_uri (GstURIHandler * handler)
+{
+  return NULL;

I'm pretty sure we can do better than returning NULL here.

@@ +506,3 @@
+  }
+
+  if (gst_uri_query_has_key (gst_uri, "socket-path")) {

Any reason to put the socket path as a key instead of shm:///path/to/socket ?
Comment 2 Sebastian Dröge (slomo) 2017-03-11 09:25:15 UTC
(In reply to Olivier Crête from comment #1)

> +  if (gst_uri_query_has_key (gst_uri, "socket-path")) {
> 
> Any reason to put the socket path as a key instead of shm:///path/to/socket ?

Bug #779765 I guess, but this should definitely be part of the path instead here.
Comment 3 Marc Leeman 2017-03-13 10:27:36 UTC
It would be more clean if the socket path is in the path part of the URI. I will rewrite the patch. It it depends on the uri parsing bug; it will not break the previous functionality.
Comment 4 Marc Leeman 2017-03-13 11:51:16 UTC
I a bit in doubt as how to continue.

In most of our patches, we add a PROP_URI next to the Uri interface. Since this results in keeping a GstUri *uri variable; there is no longer need for a socket_path property.

Maybe that would be better to be a second patch on top of this one.
Comment 5 Marc Leeman 2017-03-13 15:24:32 UTC
Created attachment 347841 [details] [review]
rework
Comment 6 Nicolas Dufresne (ndufresne) 2017-03-13 16:13:48 UTC
Review of attachment 347841 [details] [review]:

::: sys/shm/gstshmsrc.c
@@ +242,3 @@
+        gchar *string = gst_uri_to_string (self->uri);
+
+        g_value_set_string (value, string);

g_value_take_string().
Comment 7 Marc Leeman 2017-03-14 12:15:58 UTC
Created attachment 347913 [details] [review]
g_value_take_string
Comment 8 Olivier Crête 2017-03-17 21:32:19 UTC
Review of attachment 347913 [details] [review]:

::: sys/shm/gstshmsrc.c
@@ +146,3 @@
 
+  g_object_class_install_property (gobject_class, PROP_URI,
+      g_param_spec_string ("uri", "URI", "URI grab from",

Maybe a better description like "URI of socket from shmsink"
Comment 9 Marc Leeman 2018-10-27 11:46:36 UTC
Created attachment 374058 [details] [review]
[PATCH] Add uri handler for shmsrc
Comment 10 Marc Leeman 2018-10-27 11:47:20 UTC
improved description to "URI of socket for shmsrc"
Comment 11 GStreamer system administrator 2018-11-03 14:05:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/531.