Re: RFC: Operation Options API proposal



On 24/03/2011 12:15, Juan A. Suárez Romero wrote:
> On Wed, 2011-03-23 at 14:50 +0100, Guillaume Emont wrote:
>> First idea to help the user adjust their options to what the source
>> supports::
>>
>>   gboolean
>>   grl_media_source_supported_options (GrlMediaSource *source,
>>                                       GrlSupportedOps operation,
>>                                       GrlOperationOptions *options,
>>                                       GrlOperationOptions
>> **effective_options);
>>
>> Alternative idea, similar to GstCaps in gstreamer, simpler to
>> implement for
>> plugins, slightly less flexible::
>>
>>   GrlOperationOptions *
>>   grl_media_source_supported_options (GrlMediaSource *source,
>>                                       GrlSupportedOps operation);
>>
>>   GrlOperationOptions *
>>   grl_operation_options_intersect (GrlOperationOptions *options1,
>>                                    GrlOperationOptions *options2);
>>
>>
> 
> 
> Maybe this sounds stupid, but why those functions are not using the
> GrlCaps?
Doesn't sound stupid at all. This part somehow survived unmodified from
the old document. See my comment on the subject in reply to Iago's email.
> 
> AFAIK, GrlCaps already contains what sources supports. So makes sense
> for me using caps to adjust the options to what source supports.
> 
> 	J.A.
> 
> 
> _______________________________________________
> grilo-list mailing list
> grilo-list gnome org
> http://mail.gnome.org/mailman/listinfo/grilo-list
> 



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