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 616265 - Add a GSettings plugin that provides the same services as the GConf plugin
Add a GSettings plugin that provides the same services as the GConf plugin
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 616314
Blocks: 622558
 
 
Reported: 2010-04-20 09:38 UTC by Sebastian Dröge (slomo)
Modified: 2010-07-04 15:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsettings: Initial version of GSettings plugin (47.12 KB, patch)
2010-07-03 14:16 UTC, Sebastian Dröge (slomo)
none Details | Review
gsettings: Initial version of GSettings plugin (47.33 KB, patch)
2010-07-03 14:31 UTC, Sebastian Dröge (slomo)
none Details | Review
gsettings: Initial version of GSettings plugin (77.18 KB, patch)
2010-07-03 18:29 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Sebastian Dröge (slomo) 2010-04-20 09:38:58 UTC
...see summary ;)
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2010-04-20 10:08:09 UTC
Can we refactor the gconf plugin to something that can take the settings from gconf/gsettings/win-registry/... I belive most of the code is the same.
Comment 2 Sebastian Dröge (slomo) 2010-04-20 10:34:45 UTC
Yes, a start of this is already in the gconf plugin. Oh and GSettings has a GConf backend too btw ;)
Comment 3 Sebastian Dröge (slomo) 2010-04-20 16:46:44 UTC
Unfortunately GSettings is completely thread-unaware at the moment and even reading settings from different threads won't work...
Comment 4 Sebastian Dröge (slomo) 2010-07-03 14:16:17 UTC
Created attachment 165178 [details] [review]
gsettings: Initial version of GSettings plugin

This only provides an audio sink element for now.

Fixes bug #616265.
Comment 5 Sebastian Dröge (slomo) 2010-07-03 14:31:57 UTC
Created attachment 165179 [details] [review]
gsettings: Initial version of GSettings plugin

This only provides an audio sink element for now.

Fixes bug #616265.
Comment 6 Tim-Philipp Müller 2010-07-03 14:56:04 UTC
 - schema should be org.freedesktop.gstreamer.xyz (changed already)

 - "Audio/Audio conferencing" ? Should that be Audio/Video ? (changed already)

 - should we use this as an opportunity to reshuffle things a little?
   e.g. "audiosink" sounds like the default, but is really just the
   'soundeventaudiosink', whereas musicaudiosink is what most
   people would consider the default (IMHO). So:

     - maybe make music the default value for the profile property?

     - rename 'audiosink' to 'eventsaudiosink' or somesuch?

     - do we need different schemas here? (ask gnome people?)

 - g_settings_new ("org.freedesktop.gstreamer.0.10")
   Is the 0.10 going to be a problem or significant in any
   way? (ie. 0.10 not being a single unit, but two units in a way)

 - "GSettings plugin library" => "GSettings plugin" ?

Looks good otherwise.
Comment 7 Sebastian Dröge (slomo) 2010-07-03 18:29:40 UTC
Created attachment 165186 [details] [review]
gsettings: Initial version of GSettings plugin

This provides audio/video sources and sinks.

Fixes bug #616265.
Comment 8 Sebastian Dröge (slomo) 2010-07-03 18:34:34 UTC
(In reply to comment #6)

>  - should we use this as an opportunity to reshuffle things a little?
>    e.g. "audiosink" sounds like the default, but is really just the
>    'soundeventaudiosink', whereas musicaudiosink is what most
>    people would consider the default (IMHO). So:
> 
>      - maybe make music the default value for the profile property?
> 
>      - rename 'audiosink' to 'eventsaudiosink' or somesuch?

Changed that but it's "sounds-audiosink" now. Events sounds a bit weird IMHO.

>      - do we need different schemas here? (ask gnome people?)

Why would we need a different schema for that?

>  - g_settings_new ("org.freedesktop.gstreamer.0.10")
>    Is the 0.10 going to be a problem or significant in any
>    way? (ie. 0.10 not being a single unit, but two units in a way)

That's no problem, that string isn't parsed inside GSettings AFAIK and the hierarchy in the string is just convention. I've changed it to org.freedesktop.gstreamer-0.10.default-elements btw, this prevents conflicts with any core GSettings schemas we might want to have in the future or not ;)


And I've added the other 3 elements now. Should be ready to go in ;)
Comment 9 Benjamin Otte (Company) 2010-07-03 21:27:51 UTC
Wouldn't gsettings-editor present this as a tree separated by dots? Or would that just make a list of all schemas?
Comment 10 Sebastian Dröge (slomo) 2010-07-04 05:59:23 UTC
You mean dconf-editor? No idea but good point. What do you suggest?
Comment 11 Sebastian Dröge (slomo) 2010-07-04 15:01:32 UTC
commit 0d2fc6a7303cbd0db9675c14dd3e1dfc6ba0b2cc
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Sat Jul 3 16:15:34 2010 +0200

    gsettings: Initial version of GSettings plugin
    
    This provides audio/video sources and sinks.
    
    Fixes bug #616265.