Re: Adding new metadata



On Fri, 2011-03-11 at 14:01 +0100, Juan A. Suárez Romero wrote:
> On Thu, 2011-03-10 at 18:15 +0000, Lionel Landwerlin wrote:
> > Hi all,
> > 
> 
> 
> > In the second case, how should the corresponding value be retrieved ?
> > Calling grl_media_source_metadata () with keys parameter being NULL ?
> > 
> 
> If you know the key name (let's say "camera-model"), you can ask the
> register for the key, and then use it in source_metadata() function.
> 
> GrlKeyID camera_model = grl_plugin_registry_lookup_metadata_key
> (registry, "camera-model");
> 
> GList *ask_keys = grl_metadata_key_list_new (GRL_METADATA_KEY_TITLE,
> GRL_METADATA_KEY_AUTHOR, camera_model, NULL);
> 
> metadata_key(source, ..., ask_keys, ...);
> 

What if you don't know the available keys, but still want to display
them using g_param_spec_get_blurb() as description ?

Regards,

--
Lionel Landwerlin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]