Clarification about filtering by type



Hello!

Bug BGO#709208[1] has fixed a misunderstanding about filtering by type.

So, just to emphasize the clarification, in order to filter content by
type (that is, getting only audio, video or image content) needs, on one
side, that source has such capability, and on the other, that developer
request content filtered.

For the first part, it means that the source must declare in its
capabilities it can do such filtering. So the capability can declare
GRL_TYPE_FILTER_NONE (the default value, source can't do filtering),
GRL_TYPE_FILTER_ALL (developer can request any type of content), or
GRL_TPYE_FILTER_AUDIO|VIDEO|IMAGE (developer can filter by any of such
content). 

Then the developer can do the proper filter (if source support it) using
grl_operation_options_set_type_filter(). In this case, developer
actually specifies the kind of content he needs. So filtering by
GRL_TYPE_FILTER_VIDEO means that user wants video content.

Hope this clarification is useful for you.

        J.A.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=709208



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