[vlc-commits] [Git][videolan/vlc][master] rss: avoid logging allocation errors

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Feb 27 10:31:29 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ca337674 by Steve Lhomme at 2025-02-27T10:13:27+00:00
rss: avoid logging allocation errors

- - - - -


1 changed file:

- modules/spu/rss.c


Changes:

=====================================
modules/spu/rss.c
=====================================
@@ -343,7 +343,6 @@ static subpicture_t *Filter( filter_t *p_filter, vlc_tick_t date )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
     subpicture_t *p_spu;
-    subpicture_region_t *p_region;
 
     int i_item;
     rss_feed_t *p_feed;
@@ -501,12 +500,8 @@ static subpicture_t *Filter( filter_t *p_filter, vlc_tick_t date )
         /* Display the feed's image */
         picture_t *p_pic = p_feed->p_pic;
 
-        p_region = subpicture_region_ForPicture( NULL, p_pic );
-        if( !p_region )
-        {
-            msg_Err( p_filter, "cannot allocate SPU region" );
-        }
-        else
+        subpicture_region_t *p_region = subpicture_region_ForPicture( NULL, p_pic );
+        if( likely(p_region) )
         {
             p_region->i_x = region->i_x;
             p_region->i_y = region->i_y;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ca337674371d81b0bb95343178bcfbdb24ab85a1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ca337674371d81b0bb95343178bcfbdb24ab85a1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list