Commit Graph

38 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
Lucas De Marchi 4686d20b47 Fixes for Ecore Api changes
Patch automatically by Coccinelle to fix the
callbacks used by the following functions:

 * ecore_event_handler_add()
 * ecore_event_filter_add()
 * ecore_idler_add()
 * ecore_idle_enterer_add()
 * ecore_idle_enterer_before_add()
 * ecore_idle_exiter_add()
 * ecore_main_fd_handler_add()
 * ecore_main_win32_handler_add()
 * ecore_timer_add()
 * ecore_timer_loop_add()
 * ecore_animator_add()
 * ecore_poller_add()



SVN revision: 50099
2010-07-08 00:51:55 +00:00
Gustavo Lima Chaves a4348185b2 Fix emotion compilation on fedora9, by jprvita.
SVN revision: 46008
2010-02-09 12:59:29 +00:00
Sebastian Dransfeld ba74181c5c make clang happy
SVN revision: 45196
2010-01-15 20:50:48 +00:00
Cedric BAIL c2532a7691 * emotion: Use the right macro.
SVN revision: 44895
2010-01-04 21:28:24 +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 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 297858d10c calloc not malloc! bad patches!
SVN revision: 38318
2008-12-25 08:35:51 +00:00
Gustavo Sverzut Barbieri 25c58aefef emotion: set default volume to 80%.
SVN revision: 37454
2008-11-04 11:48:19 +00:00
Sebastian Dransfeld 65e204a52e xine_xmalloc is deprecated and gives no benefit for us.
SVN revision: 37218
2008-10-27 09:50:00 +00:00
Gustavo Sverzut Barbieri ea7104a545 emotion: set volume when files are opened.
SVN revision: 36531
2008-10-08 16:20:02 +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
Sebastian Dransfeld feb962a48c Remove seek guard, as it isn't updated during playing.
SVN revision: 35918
2008-09-10 05:08:00 +00:00
Sebastian Dransfeld ca775d8d81 EAPI
SVN revision: 35916
2008-09-10 05:00:32 +00:00
Sebastian Dransfeld cabff8277f Initialize seek variables to -1, so that seek to 0 will work.
SVN revision: 35912
2008-09-10 04:24:38 +00:00
Sebastian Dransfeld f05fe5a8da ignore
SVN revision: 34863
2008-06-19 12:29:22 +00:00
doursse c014ed5267 put xine and gstreamer modules in their own subdir
SVN revision: 34539
2008-05-11 18:52:29 +00:00
Carsten Haitzler 830e68d0ff move plugin to be inlined ans loaded from code and make xine emotion support
work again


SVN revision: 19946
2006-01-21 14:13:51 +00:00
Mike Frysinger aa94c430d3 xine-lib-1.1.1 change member names in the vo_overlay_t struct
SVN revision: 18673
2005-11-28 07:01:43 +00:00
sebastid e260c571a6 Use AC_PATH_GENERIC
SVN revision: 16492
2005-09-03 19:07:24 +00:00
sebastid 8e0218f914 Don't include $(includedir) in searchpath, find headers in this source
and in the provided package CFLAGS.


SVN revision: 16470
2005-09-02 20:15:28 +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
Carsten Haitzler 14ef35f5ca ansi damn u!
SVN revision: 14098
2005-04-05 02:21:06 +00:00
Carsten Haitzler 0ba866f5cf segv waiting to happen
SVN revision: 13923
2005-03-26 15:49:17 +00:00
Carsten Haitzler 5f7a8371ab up to latest xine api! :)
SVN revision: 12923
2005-01-12 11:35:04 +00:00
Carsten Haitzler 51af1ad286 LDFLAGS
SVN revision: 12126
2004-11-02 03:50:27 +00:00
xenith 3a824f120d ignores
SVN revision: 12023
2004-10-25 03:23:14 +00:00
Carsten Haitzler 8798313dcc eject works.. xine bug.. if video is paused (*or int he process of being
paused) when we try shut down the stream - POOF - xine hangs


SVN revision: 10914
2004-07-19 05:44:54 +00:00
Carsten Haitzler 755168f03b grr - i'm trying to debug why xine locks up on closing/stopping/deleting a
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
2004-07-19 04:50:14 +00:00
Carsten Haitzler b97f661628 autofool cleanups... argh! i hate autofools!
SVN revision: 10574
2004-06-24 06:11:36 +00:00
Carsten Haitzler 7f3528ec27 it had to happen sooner or later... in in in... we go! :)
SVN revision: 10537
2004-06-18 15:38:03 +00:00