GNOME Bugzilla – Bug 748873
Documentation and precondition fixes for media resolution
Last modified: 2015-05-08 10:12:40 UTC
Some trivial patches to make it harder to shoot yourself in the foot by not checking whether the GrlMedia is NULL in a GrlSourceResolveCb callback.
Created attachment 302838 [details] [review] src: Add preconditions to all methods in grl-media.c Otherwise it’s very easy to get a NULL GrlMedia in a GrlSourceResolveCb callback and start calling methods on it which will happily produce garbage.
Created attachment 302839 [details] [review] src: Expand documentation for GrlSourceResolveCb
Review of attachment 302838 [details] [review]: Yes.
Review of attachment 302839 [details] [review]: Looks good.
Attachment 302838 [details] pushed as e9fc0cf - src: Add preconditions to all methods in grl-media.c Attachment 302839 [details] pushed as 7d981c4 - src: Expand documentation for GrlSourceResolveCb