Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
* clean up autotools
* remove some warnings
issues:
* vlc backend can not be built on my computer(API change
in libvlc, it seems)
* when i build xine *and* gstreamer as static, i get a
multiple defined of __eina_module_init and __eina_module_shutdown
SVN revision: 44884
Always call pos_get() and also fix these on xine and gstreamer, we
should query the current position and do not trust cached value. For
instance, when no video is present, no handoff/frame-decoded is called
so no cache is updated.
SVN revision: 36271
done:
* module api changed, vis_set is not close to vis_get, vis_supported
was added.
* exported these properties in emotion_object.
* gstreamer plugin now starts with no visualization.
todo:
* add xine support.
* make gstreamer able to dynamically change visualization.
PS: gstreamer module really needs a cleanup, losts of functions need
"static" or add proper prefix, including "gst" to avoid it clash with
other symbols.
SVN revision: 36260
movies!
I had to make some module API changes:
- rename yuv_size_get to video_data_size_get
- add the function "Emotion_Format (*format_get) (void *ef);" in Emotion_Video_Module. This function should return the format used by the video (EMOTION_YV12, EMOTION_YUY2 or EMOTION_BGRA).
I use a yuy2->bgra converter since evas doesn't support YUY2. This converter should be rewrite since it's really not optimized and since it is under GPLv2 (emotion is under BSD). I added an explicit comment above the function for that, but it'd be better to use a converter under BSD.
If it's really incompatible with emotion license, I will remove it.
SVN revision: 15675
stream in elation but NOt in emotion when emotion_test shuts down.
ok emotion_test:
emotion_test dvd://
now once its played a bit of the dvd hit:
q
and it will quit
destroy video objects then exit main loop and exit.
now with elation:
elation
now put a dvd in the drive (or already have one) elation will detect this.
now let it play a bit of the dvd, and hit "Escape" to eject the dvd (which
will try delete thevideo object). elatiojn will get STUCK inside an emotion
call whihc get stuckin the emotion_xine module call thsat gets stuck inside
xine_stop().
now WHY. what is it about elation that triggers xine to go batty?
SVN revision: 10910