[vlc-commits] stream_access: add unlikely
Rémi Denis-Courmont
git at videolan.org
Sat Aug 15 12:27:37 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 15 13:26:35 2015 +0300| [76e10cf13937c88b056a51ab5d64b72574afa4c2] | committer: Rémi Denis-Courmont
stream_access: add unlikely
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76e10cf13937c88b056a51ab5d64b72574afa4c2
---
src/input/stream_access.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/stream_access.c b/src/input/stream_access.c
index da03808..a053038 100644
--- a/src/input/stream_access.c
+++ b/src/input/stream_access.c
@@ -198,7 +198,7 @@ stream_t *stream_AccessNew( access_t *p_access )
p_access->psz_location ) == -1 )
s->psz_url = NULL;
s->p_sys = p_sys = malloc( sizeof( *p_sys ) );
- if( !s->psz_url || !s->p_sys )
+ if( unlikely(s->psz_url == NULL || s->p_sys == NULL) )
{
free( s->p_sys );
stream_CommonDelete( s );
More information about the vlc-commits
mailing list