[vlc-commits] commit: Fixed allocation failure test in input_item_SetEpg(). ( Laurent Aimar )

git at videolan.org git at videolan.org
Tue Nov 2 09:06:38 CET 2010


vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct 31 12:40:15 2010 +0100| [98b588f73704f612ccd4c3a3742ce7cc7b3c284a] | committer: Rémi Duraffort 

Fixed allocation failure test in input_item_SetEpg().
(cherry picked from commit 9db11bdf3dcaa47be10144e4bd26cdd8da1245a6)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=98b588f73704f612ccd4c3a3742ce7cc7b3c284a
---

 src/input/item.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index df4e159..0d374af 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -744,6 +744,9 @@ void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_update )
 
     vlc_mutex_unlock( &p_item->lock );
 
+    if( !p_epg )
+        return;
+
 #ifdef EPG_DEBUG
     char *psz_epg;
     if( asprintf( &psz_epg, "EPG %s", p_epg->psz_name ? p_epg->psz_name : "unknown" ) < 0 )



More information about the vlc-commits mailing list