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 795854 - uridecodebin3: setting suburi property has no effect
uridecodebin3: setting suburi property has no effect
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-06 14:01 UTC by Philippe Normand
Modified: 2018-11-03 12:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.92 KB, patch)
2018-05-06 15:15 UTC, Philippe Normand
none Details | Review
same patch without typo (3.92 KB, patch)
2018-05-06 15:24 UTC, Philippe Normand
reviewed Details | Review

Description Philippe Normand 2018-05-06 14:01:15 UTC
.
Comment 1 Philippe Normand 2018-05-06 15:15:52 UTC
Created attachment 371753 [details] [review]
patch
Comment 2 Philippe Normand 2018-05-06 15:24:04 UTC
Created attachment 371755 [details] [review]
same patch without typo
Comment 3 Jan Schmidt 2018-05-06 15:58:13 UTC
Not that this patch really makes it any worse, but there's a worrying lack of locking in uridecodebin3 around bits of data that are accessed and modified from multiple threads.
Comment 4 Philippe Normand 2018-06-16 13:50:27 UTC
(In reply to Jan Schmidt from comment #3)
> Not that this patch really makes it any worse, but there's a worrying lack
> of locking in uridecodebin3 around bits of data that are accessed and
> modified from multiple threads.

I agree. Do yo want me to start fixing this with this patch or can the existing patch be reviewed and locking added later on?
Comment 5 Thibault Saunier 2018-08-16 18:22:44 UTC
Review of attachment 371755 [details] [review]:

::: gst/playback/gsturidecodebin3.c
@@ -854,1 +876,4 @@
-      g_value_set_string (value, dec->suburi);
+      if (dec->current && dec->current->main_item) {
+        g_value_set_string (value, dec->current->main_item->uri);
+      } else {
+        g_value_set_string (value, "");

Can you just use `dec->uri` here?

@@ -1015,1 +1038,2 @@
   dec->play_items = g_list_append (dec->play_items, item);
+  dec->current = dec->play_items->data;

That was never set at all right? I have the impression something is missing in term of ownership here.
Comment 6 GStreamer system administrator 2018-11-03 12:07:05 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-base/issues/451.