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 738608 - hlssink: Add URI handler interface
hlssink: Add URI handler interface
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.10.4
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 779765
Blocks:
 
 
Reported: 2014-10-16 08:14 UTC by Marc Leeman
Modified: 2018-11-03 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
HLS uri handler (10.26 KB, patch)
2014-10-16 08:14 UTC, Marc Leeman
none Details | Review
location is set from the path of the uri (940 bytes, patch)
2014-10-16 09:07 UTC, Marc Leeman
none Details | Review
rewrite to GstUri (9.47 KB, patch)
2015-03-25 17:14 UTC, Marc Leeman
none Details | Review
Add GstUri interface to hls (5.69 KB, patch)
2017-03-10 13:13 UTC, Marc Leeman
none Details | Review
rework (5.84 KB, patch)
2017-03-13 15:22 UTC, Marc Leeman
none Details | Review

Description Marc Leeman 2014-10-16 08:14:46 UTC
Created attachment 288651 [details] [review]
HLS uri handler

This patch adds a uri-handler to hlssink.

Greetings from Dusseldorf; Tim just complained there were not enough bugs and companies were not contributing enough :-)
Comment 1 Marc Leeman 2014-10-16 09:07:24 UTC
Created attachment 288655 [details] [review]
location is set from the path of the uri
Comment 2 Thiago Sousa Santos 2014-10-20 08:24:01 UTC
Review of attachment 288651 [details] [review]:

Aside the naming issues we need to decide if we want another custom scheme into gstreamer. We already have v4l2 for example, but that was because there was no way to inject a non uri handler element into it. What's the use case here?

::: configure.ac
@@ +3000,3 @@
+  PKG_CHECK_MODULES(SOUP2, libsoup-2.4 >= 2.38.1, HAVE_SOUP2="yes", [
+      HAVE_SOUP2="no"
+    ])

I'm concerned whether this would end up disabling hls support in non-linux platforms. Is libsoup easily instalable?

::: ext/hls/gsthlssink.c
@@ +90,3 @@
 gst_hls_sink_change_state (GstElement * element, GstStateChange trans);
 static gboolean schedule_next_key_unit (GstHlsSink * sink);
+static void gst_barco_parse_uri (GObject * obj, SoupURI * uri);

Cool name but I guess it wasn't intentional

@@ +606,3 @@
+
+static gboolean
+

Same naming issue here

@@ +623,3 @@
+
+static void
+  return TRUE;

And here
Comment 3 Marc Leeman 2014-10-20 09:20:26 UTC
Review of attachment 288651 [details] [review]:

Considering soup; as far as I noticed; it is being used in other modules too and I know that soup, it is also working on Windows. This sort of parsing is what we typically do and the modules are running on Windows and Linux.

The naming issue is indeed not something intentional; it was a piece of code that was taken out another (internal) module to do the parsing. I will change that.
Comment 4 Sebastian Dröge (slomo) 2014-10-20 11:03:40 UTC
libsoup works everywhere, but I would prefer if we could just use GstUri from core for that :) We have URI handling capabilities in git master now.
Comment 5 Marc Leeman 2014-10-20 13:03:22 UTC
I am all in favour to move to GstUri; but it can only be done in 1.6 as far as I understand.
Comment 6 Sebastian Dröge (slomo) 2014-10-20 13:08:08 UTC
Yes, all patches are going to be merged into master only anyway... and only bugfixes (no feature additions like this) would be backported to 1.4. So no problem here
Comment 7 Marc Leeman 2015-03-25 17:14:50 UTC
Created attachment 300297 [details] [review]
rewrite to GstUri

Written against 1.4.5
GstUri from git master.
Comment 8 Marc Leeman 2015-04-16 10:20:24 UTC
ah yeah, the g_hash_table_destroy needs to be g_hash_table_unref
Comment 9 Marc Leeman 2017-03-10 13:13:23 UTC
Created attachment 347630 [details] [review]
Add GstUri interface to hls
Comment 10 Nicolas Dufresne (ndufresne) 2017-03-10 21:37:44 UTC
Another URI handler for a sink ? Really ?
Comment 11 Marc Leeman 2017-03-13 15:22:50 UTC
Created attachment 347840 [details] [review]
rework
Comment 12 Nicolas Dufresne (ndufresne) 2017-03-13 16:12:32 UTC
Review of attachment 347840 [details] [review]:

::: ext/hls/gsthlssink.c
@@ +453,3 @@
+          gchar *string = gst_uri_to_string (sink->uri);
+
+          g_value_set_string (value, string);

Use g_value_take_string()
Comment 13 GStreamer system administrator 2018-11-03 13:27:52 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/183.