[vlc-commits] [Git][videolan/vlc][master] imem: return proper demuxer return codes

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jan 27 12:11:02 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
40c52097 by Steve Lhomme at 2024-01-27T11:54:30+00:00
imem: return proper demuxer return codes

- - - - -


1 changed file:

- modules/access/imem.c


Changes:

=====================================
modules/access/imem.c
=====================================
@@ -579,7 +579,7 @@ static int Demux(demux_t *demux)
 
         if (sys->source.get(sys->source.data, sys->source.cookie,
                             &dts, &pts, &flags, &buffer_size, &buffer))
-            return 0;
+            return VLC_DEMUXER_EOF;
 
         if (dts < 0)
             dts = pts;
@@ -602,7 +602,7 @@ static int Demux(demux_t *demux)
                             buffer_size, buffer);
     }
     sys->deadline = VLC_TICK_INVALID;
-    return 1;
+    return VLC_DEMUXER_SUCCESS;
 }
 
 /**



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/40c52097c8bd075319dc0d26d59fcef023db1eb2
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