[gst-devel] what's the reason for 'returned caps which are not a real subset of its template caps'?

Wim Taymans wim.taymans at gmail.com
Wed Dec 23 10:54:48 CET 2009


On Wed, 2009-12-23 at 16:57 +0800, Zhao, Halley wrote:
> When I use my customized camera src element, there is one warning
> that:
> 
> 'returned caps which are not a real subset of its template caps'

It means that the template caps are more restrictive that the caps
returned by getcaps, which is likely not what you want.

> 
> Could anyone kindly tell me where is root reason?

The template caps contain a framerate field while the ones from the
getcaps function don't.

> 
> How to fix it?

Add a framerate field to the caps returned from getcaps.

Wim
> 
> Thanks.
> 
>  
> 
>  
> 
> I guess there are two possible reasons:
> 
> 1. I added ‘video/x-raw-va’ for my camera src caps, which is not
> included in base src.
> 
> 2. Pad template (shows by gst-inspect?) doesn’t match with _get_caps
> during run-time. See attachment.
> 
>  
> 
>  
> 
>  
> 
> ZHAO, Halley (Aihua)
> 
> Email: halley.zhao at intel.com
> 
> Tel: +86(21)61166476
> 
> iNet: 8821-6476
> 
> SSG/OTC/Moblin 3W038 Pole: F4
> 
> 
>  
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel






More information about the gstreamer-devel mailing list