On Tue, 14 Jun 2011 00:31:38 +0200, Stefano Sabatini 
<[email protected]> wrote:
> On date Monday 2011-06-13 07:31:20 +0200, Anton Khirnov encoded:
> > 
> > On Mon, 13 Jun 2011 01:43:07 +0200, Stefano Sabatini 
> > <[email protected]> wrote:
> [...]
> > > > + * @note Options found with AV_OPT_SEARCH_CHILDREN flag may not be
> > > > + * settable directly with av_set_string3. Use special calls which
> > > > + * take an options AVDictionary (e.g. avformat_open_input() ) to set 
> > > > options
> > > > + * found with this flag.
> > > 
> > > This restriction is a bit clumsy and is introducing an asymmetry
> > > between setting and getting operations. What about:
> > > av_opt_set(..., int search_flags)?
> > > 
> > > Anyway if this is a limitation of the current av_set_string3() there
> > > is no way to block this patch, but this problem should be analyzed
> > > before for avoiding future API fixes.
> > 
> > Well that's the main point of the new API ;)
> > The problem is that at the point when you want to set the options,
> > all those private contexts don't exist yet, so I see no way to make
> > this work with av_set_string.
> 
> OK but this is still a limitation of the get and set API, maybe it
> makes sense to extend it by adding a search_flags to those functions
> (but unrelated to this patch).

Again -- HOW?

The private contexts don't exist at the point when you want to set
the options.

--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to