[MPlayer-dev-eng] [PATCH] libaf fix for lost cmdline when reinit (swtich audio track)
Ulion
ulion2002 at gmail.com
Sun Dec 9 10:46:38 CET 2007
2007/12/9, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> Hello,
> On Sun, Dec 09, 2007 at 03:35:31PM +0800, Ulion wrote:
> > Index: libaf/af.c
> > ===================================================================
> > --- libaf/af.c (revision 25325)
> > +++ libaf/af.c (working copy)
> > @@ -102,13 +102,14 @@
> >
> > /*/ Function for creating a new filter of type name. The name may
> > contain the commandline parameters for the filter */
> > -static af_instance_t* af_create(af_stream_t* s, char* name)
> > +static af_instance_t* af_create(af_stream_t* s, const char* name)
> > {
> > + name = strdup(name);
>
> Doesn't this give warnings? name is still const char * like this.
> Better rename the argument (e.g. to orig_name) and do
> char *name = strdup(orig_name);
>
Fixed.
--
Ulion
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: af_reinit_lost_cmdline_fix2.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071209/f17e69df/attachment.txt>
More information about the MPlayer-dev-eng
mailing list