Commit Graph

62 Commits

Author SHA1 Message Date
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
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
2010-08-21 13:52:25 +00:00
Andreas Volz 5967027157 doxygen
SVN revision: 50486
2010-07-25 18:29:01 +00:00
Vincent Torri d762831a62 copy/paste error
SVN revision: 48254
2010-04-23 17:37:31 +00:00
Vincent Torri 83723040ad wrong default path for the emotion modules
SVN revision: 48208
2010-04-21 18:59:24 +00:00
Gustavo Sverzut Barbieri 6262a884fb Initial support for Emotion as Edje EXTERNAL.
Very crude, needs testing... but I can already play videos from inside
editje and edje_player :-D



SVN revision: 47642
2010-04-01 03:59:39 +00:00
Gustavo Sverzut Barbieri dc0eb07860 allow changing module during runtime, don't forget about file and play state.
SVN revision: 47638
2010-04-01 02:17:40 +00:00
Gustavo Sverzut Barbieri 4a9c82671e consts++
SVN revision: 47637
2010-04-01 01:33:56 +00:00
Cedric BAIL 44193541f7 * ecore: Move ecore_job inside ecore.
Patch from Albin "Lutin" Tonnerre <albin.tonnerre@gmail.com>.


SVN revision: 45570
2010-01-25 21:59:21 +00:00
Vincent Torri 2a1b159536 * enable static build of modules
* 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
2010-01-04 18:45:40 +00:00
Cedric BAIL edf90cc827 * emotion: Add backend autodetection ability (you can pass NULL, and
have some good hope for a result now :-) )


SVN revision: 44784
2009-12-30 12:54:06 +00:00
Cedric BAIL 65c4336b0b * emotion: Switch to Eina module.
TODO: Add configure option to build module statically.


SVN revision: 44781
2009-12-30 10:49:06 +00:00
Sebastian Dransfeld f6b7273237 Remove use of deprecated event
XINE_EVENT_MRL_REFERENCE is deprecated, listen for
XINE_EVENT_MRL_REFERENCE_EXT.

SVN revision: 43540
2009-11-08 20:27:12 +00:00
Cedric BAIL d331f73b55 * emotion: Remove Evas_Bool.
SVN revision: 41097
2009-06-18 08:01:23 +00:00
Vincent Torri 17e4571dff Add preliminary patch for compilation on Windows. Needs more work, though
Patch by Lars Munch - Thanks a lot !



SVN revision: 40147
2009-04-17 19:40:41 +00:00
Carsten Haitzler 5e925c916e patch from Gustavo F. Padovan - minor code cleanups (effectually cosmetic) :)
SVN revision: 39463
2009-03-13 10:42:04 +00:00
Gustavo Sverzut Barbieri 510146a383 Set member_{add,del} to NULL.
SVN revision: 37088
2008-10-25 03:01:12 +00:00
Cedric BAIL 17626bb400 Remove Evas List from Emotion.
SVN revision: 36943
2008-10-21 16:35:41 +00:00
Gustavo Sverzut Barbieri 0ebceb16a1 emotion: do not try to do file_set when no plugin is loaded.
SVN revision: 36530
2008-10-08 15:38:42 +00:00
Gustavo Sverzut Barbieri aa3aac7dbf Fix position reporting.
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
2008-09-26 23:17:57 +00:00
Gustavo Sverzut Barbieri d29b7694cb emotion+visualization: export and reorder.
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
2008-09-25 23:15:21 +00:00
Gustavo Sverzut Barbieri 58a49c2f69 Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
doursse caea856117 * reorganize the way the gstreamer pipeline is built. Fix some usages
of emotion_object_file_set()
 * move the "frame_decode" evas event to _emotion_frame_new() a,d
   replace it in _emotion_video_pos_update() by "position_update"
 * fix a mem leak in the gstreamer backend and in the smart object


SVN revision: 34581
2008-05-15 16:52:04 +00:00
doursse ac834a2726 Don't set sd->video to NULL. sd->video is initialized only when
emotion_object_init() is called. Hence, setting sd->video to NULL
there implied that the code:

emotion_object_init(o, module);
emotion_object_file_set(o, file1);
emotion_object_file_set(o, NULL);
emotion_object_file_set(o, file2);

seg fault.

(such code is useful when you want to reset the same stream
(file1 = file2). The other solution would be to destroy everything
and recreating the pipeline, which is not nice)


SVN revision: 34571
2008-05-14 21:39:33 +00:00
doursse 6c22f4068d Fix the play of 2 files. Patch by Nicolas Aguirre
SVN revision: 32576
2007-11-11 16:02:02 +00:00
Peter Wehrfritz 4efe3eb21c following the api changes of ecore
SVN revision: 32411
2007-11-06 17:03:43 +00:00
Sebastian Dransfeld b8ee0529f9 Add type identifier.
SVN revision: 32400
2007-11-06 06:56:53 +00:00
doursse 48df189aa7 now you can play several files without segfault
SVN revision: 32299
2007-11-02 11:58:59 +00:00
doursse 4649e92bb8 * Use ecore_plugin instead of dlfcn
* the modules names are now "xine" and "gstreamer" (it's useless to add
   the extension, as ecore_plugin do not need it). I'll fix eclair,
   etk_extra and ewl.
 * look for the modules in path that is pointed by the env variable
    EMOTION_MODULES_DIR first.
 * fix a leak in the gstreamer module
 * remove some trailing spaces


SVN revision: 32261
2007-10-31 19:34:39 +00:00
Carsten Haitzler 8bf6f2f344 fix odd sized videos
SVN revision: 32186
2007-10-28 10:19:09 +00:00
Carsten Haitzler 5482c36015 check if *mod is null
SVN revision: 32167
2007-10-26 10:49:16 +00:00
Brett Nash 8e86740929 Fix two bugs:
- Get pixels from the image object not the smart object
	- Fix typo in if statement


SVN revision: 32157
2007-10-25 04:52:39 +00:00
Carsten Haitzler cf49928045 cedric's ecore_job_init/shtudown patches.
SVN revision: 31972
2007-10-05 05:12:38 +00:00
Carsten Haitzler 4b435be1ed move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff.


SVN revision: 31161
2007-08-04 13:12:43 +00:00
Carsten Haitzler 6f07dd49ee debugging emotion.
SVN revision: 30889
2007-07-18 04:42:31 +00:00
Carsten Haitzler 97d7a0526b change to use lazy eval for dlopen
SVN revision: 29868
2007-05-06 05:05:26 +00:00
Carsten Haitzler 826f1c2dcf export api calls to modules
SVN revision: 29867
2007-05-06 05:03:18 +00:00
Sebastian Dransfeld f7cc0332f5 Fix warnings.
SVN revision: 28695
2007-03-13 16:17:38 +00:00
Carsten Haitzler 2dbc5651d4 move emotion to fix latency on video load, deadlocks on stop/shutdown etc.
SVN revision: 28679
2007-03-13 02:30:14 +00:00
Carsten Haitzler 2026b988bc there is a deadlock between the video out deocder thread and the main process
(emotion) thread as it continues while the main thread is stopped tyring to
stop the video playback - this ends up in a deadlock. this tries to eliminate
that by havng a much more limited framequeue.


SVN revision: 27753
2007-01-03 06:24:25 +00:00
Carsten Haitzler eb21b3503c use the new colorspace support in evas... :)
SVN revision: 27519
2006-12-19 14:15:17 +00:00
sebastid 3641dd1751 EAPI
SVN revision: 25522
2006-09-06 07:17:49 +00:00
doursse 7ecab55f5b gstreamer 0.10 port. There's a problem with the seek, no evas sink yet
SVN revision: 20273
2006-02-04 13:43:13 +00:00
Carsten Haitzler cc8c268dcd less segv's
SVN revision: 19977
2006-01-23 03:00:35 +00:00
sebastid ce987876a8 Don't use strlen to check for empty string.
SVN revision: 18271
2005-11-04 08:21:28 +00:00
doursse a5eb691aef remove printf
SVN revision: 17109
2005-10-02 12:19:36 +00:00
doursse bad4d6e848 emotion can use gstreamer, now
SVN revision: 17103
2005-10-02 07:34:36 +00:00
sebastid 1f0a680d7f Add return values.
Formatting.
Right macro.


SVN revision: 16438
2005-08-30 23:40:34 +00:00
moom16 ee5135f71f * Have rewritten the yuy2->rgb converter to avoid license problems.
So now, emotion_xine supports yuy2-encoded movies (such as .wmv).


SVN revision: 15678
2005-07-08 23:08:48 +00:00
moom16 8e204f7f56 * Cancel last changes since it seems there are some license problems.
Sorry guys, I didn't think GPLv2 was so "contaminating"


SVN revision: 15677
2005-07-08 20:28:50 +00:00
moom16 8e4e372d87 * Add support of yuy2 to emotion_xine module. So now, we can play wmv
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
2005-07-08 19:56:48 +00:00