[vlc-devel] [RFC 03/38] access/dtv: removed usage of abort

Filip Roséen filip at videolabs.io
Mon Jun 27 13:43:14 CEST 2016


---
 modules/access/dtv/bdagraph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dtv/bdagraph.cpp b/modules/access/dtv/bdagraph.cpp
index 14d5a96..024e698 100644
--- a/modules/access/dtv/bdagraph.cpp
+++ b/modules/access/dtv/bdagraph.cpp
@@ -1428,7 +1428,7 @@ int BDAGraph::SetDVBS(long l_frequency, long l_symbolrate, uint32_t fec,
     l_network_id       = var_GetInteger( p_access, "dvb-network-id" );
 
     if( asprintf( &l.psz_polarisation, "%c", pol ) == -1 )
-        abort();
+        return VLC_ENOMEM;
 
     b_west = ( l_longitude < 0 );
 
-- 
2.9.0



More information about the vlc-devel mailing list