Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/emotion

Dir     : e17/libs/emotion/src/lib


Modified Files:
        emotion_smart.c 


Log Message:
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)


===================================================================
RCS file: /cvs/e/e17/libs/emotion/src/lib/emotion_smart.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- emotion_smart.c     11 Nov 2007 16:02:02 -0000      1.39
+++ emotion_smart.c     14 May 2008 21:39:33 -0000      1.40
@@ -254,7 +254,6 @@
         if (sd->video && sd->module)
          {
             sd->module->file_close(sd->video);
-            sd->video = NULL;
             evas_object_image_size_set(sd->obj, 0, 0);
          }
      }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to