[vlc-devel] commit: Remove silly out of memory message in out of memory situation. ( Jean-Paul Saman )

git version control git at videolan.org
Wed Jun 18 12:04:13 CEST 2008


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun Jun 15 20:15:07 2008 +0200| [3b8c56cc792ccb1ce15b615ab2dfeeafab07048a]

Remove silly out of memory message in out of memory situation.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b8c56cc792ccb1ce15b615ab2dfeeafab07048a
---

 modules/video_filter/clone.c    |    3 ---
 modules/video_filter/invert.c   |    3 ---
 src/video_output/video_output.c |    3 ---
 3 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/modules/video_filter/clone.c b/modules/video_filter/clone.c
index 1cbfb47..b6d4832 100644
--- a/modules/video_filter/clone.c
+++ b/modules/video_filter/clone.c
@@ -127,10 +127,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_vout->p_sys = malloc( sizeof( vout_sys_t ) );
     if( p_vout->p_sys == NULL )
-    {
-        msg_Err( p_vout, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_vout->pf_init = Init;
     p_vout->pf_end = End;
diff --git a/modules/video_filter/invert.c b/modules/video_filter/invert.c
index b6a5669..acf093e 100644
--- a/modules/video_filter/invert.c
+++ b/modules/video_filter/invert.c
@@ -79,10 +79,7 @@ static int Create( vlc_object_t *p_this )
     /* Allocate structure */
     p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
     if( p_filter->p_sys == NULL )
-    {
-        msg_Err( p_filter, "out of memory" );
         return VLC_ENOMEM;
-    }
 
     p_filter->pf_video_filter = Filter;
 
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 9a0b088..6be0dbc 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -245,10 +245,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
     /* Allocate descriptor */
     p_vout = vlc_object_create( p_parent, VLC_OBJECT_VOUT );
     if( p_vout == NULL )
-    {
-        msg_Err( p_parent, "out of memory" );
         return NULL;
-    }
 
     /* Initialize pictures - translation tables and functions
      * will be initialized later in InitThread */




More information about the vlc-devel mailing list