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 639741 - There is no synchronous version of grl_media_source_get_media_from_uri
There is no synchronous version of grl_media_source_get_media_from_uri
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: core
git master
Other Linux
: Normal normal
: ---
Assigned To: Iago Toral
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-17 12:17 UTC by Chris Lord
Modified: 2011-01-17 12:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (2.90 KB, patch)
2011-01-17 12:47 UTC, Iago Toral
none Details | Review

Description Chris Lord 2011-01-17 12:17:44 UTC
In Bug #636693, I was hoping for there to be a prescribed way of doing

GrlMedia *box = grl_media_box_new ();
grl_media_set_id (box, "/some/path/i/want");

with the filesystem plugin. This lead to the development of grl_media_source_get_media_from_uri(), but unfortunately that still can't replace the construct I've written above, as it's asynchronous only.

It would be good to have a synchronous version of this function.
Comment 1 Iago Toral 2011-01-17 12:47:07 UTC
Created attachment 178500 [details] [review]
Patch

Patch to add the synchronous version of this API
Comment 2 Iago Toral 2011-01-17 12:47:49 UTC
Pushed.

commit 95e5872722ae4ece4a9b20a5220438345adee32c
Author: Iago Toral Quiroga <itoral@igalia.com>
Date:   Mon Jan 17 13:41:35 2011 +0100

    core: Added grl_media_source_get_media_from_uri_sync
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=639741