[oss-devel] [PATCH] ossxmix minimize to tray
Yair K.
cesium2 at gmail.com
Sun Feb 3 04:07:24 EET 2008
On Sunday 03 February 2008 03:58:56 Yair K. wrote:
> On Sunday 03 February 2008 03:36:29 Clive Wright wrote:
> > Re. 4.B
> > No need to create an extra variable (aval) just move set_value function
> > call between val assignments.
>
> The problem is that set_values can detect a mixer structure change, so it
> calls reload_gui (). After that, we don't know that srec exists, so ossxmix
> could crash.
To be more accurate, we can be almost certain that srec doesn't exist, since
reload_gui () frees all these variables and creates new records. Even if srec
accidently matches something, srec->left/right probably don't match a slider.
> (That's why set_value was moved to be always after
> gtk_adjustment_... in the previous patch, and why ossxmix now checks for -1
> return value of get_value).
>
Another option would be to let set_value return -1 and check for that as in
get_value, but I found that to be mostly unneccesary since moving set_value
to be after gtk_adjustment_.. was an easy solution.
Yours,
Yair K.
More information about the oss-devel
mailing list