adaptivedemux2: Modify custom sync loss flow return
authorEdward Hervey <edward@centricular.com>
Wed, 20 Jul 2022 08:57:41 +0000 (10:57 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 4 Aug 2022 13:49:33 +0000 (14:49 +0100)
Make it a custom sucess and not an error

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2839>

subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux.h

index c0b6a1b..3a5b5f6 100644 (file)
@@ -106,7 +106,7 @@ typedef GstObjectClass GstAdaptiveDemux2StreamClass;
 #define GST_ADAPTIVE_DEMUX_FLOW_RESTART_FRAGMENT GST_FLOW_CUSTOM_SUCCESS_2
 
 /* The live stream has lost synchronization and the demuxer needs to be resetted */
-#define GST_ADAPTIVE_DEMUX_FLOW_LOST_SYNC GST_FLOW_CUSTOM_ERROR_1
+#define GST_ADAPTIVE_DEMUX_FLOW_LOST_SYNC GST_FLOW_CUSTOM_SUCCESS_2 + 1
 
 typedef enum _GstAdaptiveDemux2StreamState GstAdaptiveDemux2StreamState;