[Rhythmbox-devel] rb_source_can_pause has no default implementation



rb_source_can_pause calls klass->impl_can_pause, which by default isn't initialised to anything. Which means subclasses have to implement their own otherwise rhythmbox segfaults upon pausing.

Is this deliberate or a bug? Seeing as klass->impl_can_cut and klass->impl_can_paste etc are all initialised to defaults shouldn't can_pause be too? I don't really understand gobject code at all but would it be as simple as adding "klass->impl_can_pause = (RBSourceFeatureFunc) rb_true_function" to the function rb_source_class_init?

Cheers


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