[vlc-devel] commit: libvlc_event: Make sure we return in case of error. (Pierre d' Herbemont )
git version control
git at videolan.org
Sat Sep 27 20:13:35 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 27 20:14:35 2008 +0200| [d021755d1e982a71cbe959b0df93ae2b7fa9586c] | committer: Pierre d'Herbemont
libvlc_event: Make sure we return in case of error.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d021755d1e982a71cbe959b0df93ae2b7fa9586c
---
src/control/event.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/control/event.c b/src/control/event.c
index a98f23c..ad3ee7e 100644
--- a/src/control/event.c
+++ b/src/control/event.c
@@ -170,8 +170,8 @@ void libvlc_event_send( libvlc_event_manager_t * p_em,
array_listeners_cached = malloc(sizeof(libvlc_event_listener_t)*(i_cached_listeners));
if( !array_listeners_cached )
{
- printf( "Can't alloc memory in libvlc_event_send" );
- break;
+ fprintf(stderr, "Can't alloc memory in libvlc_event_send" );
+ return;
}
listener_cached = array_listeners_cached;
More information about the vlc-devel
mailing list