[vlc-commits] vlc_media_library.h: uniformize helpers error check
Hugo Beauzée-Luyssen
git at videolan.org
Mon Aug 20 11:42:18 CEST 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Aug 16 17:45:56 2018 +0200| [75109ac3e894737a538a0298b1a5ebf798a6c3ba] | committer: Hugo Beauzée-Luyssen
vlc_media_library.h: uniformize helpers error check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=75109ac3e894737a538a0298b1a5ebf798a6c3ba
---
include/vlc_media_library.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/vlc_media_library.h b/include/vlc_media_library.h
index b5f08cedbe..922431583a 100644
--- a/include/vlc_media_library.h
+++ b/include/vlc_media_library.h
@@ -860,7 +860,7 @@ static inline size_t vlc_ml_count_media_of( vlc_medialibrary_t* p_ml, const vlc_
{
vlc_assert( p_ml != NULL );
size_t res;
- if ( vlc_ml_list( p_ml, VLC_ML_COUNT_MEDIA_OF, params, i_parent_type, i_parent_id, &res ) )
+ if ( vlc_ml_list( p_ml, VLC_ML_COUNT_MEDIA_OF, params, i_parent_type, i_parent_id, &res ) != VLC_SUCCESS )
return 0;
return res;
}
@@ -878,7 +878,7 @@ static inline size_t vlc_ml_count_artists_of( vlc_medialibrary_t* p_ml, const vl
{
vlc_assert( p_ml != NULL );
size_t res;
- if ( vlc_ml_list( p_ml, VLC_ML_COUNT_ARTISTS_OF, params, i_parent_type, i_parent_id, &res ) )
+ if ( vlc_ml_list( p_ml, VLC_ML_COUNT_ARTISTS_OF, params, i_parent_type, i_parent_id, &res ) != VLC_SUCCESS )
return 0;
return res;
}
@@ -896,7 +896,7 @@ static inline size_t vlc_ml_count_albums_of( vlc_medialibrary_t* p_ml, const vlc
{
vlc_assert( p_ml != NULL );
size_t res;
- if ( vlc_ml_list( p_ml, VLC_ML_COUNT_ALBUMS_OF, params, i_parent_type, i_parent_id, &res ) )
+ if ( vlc_ml_list( p_ml, VLC_ML_COUNT_ALBUMS_OF, params, i_parent_type, i_parent_id, &res ) != VLC_SUCCESS )
return 0;
return res;
}
More information about the vlc-commits
mailing list