adaptivedemux2: Move internal FLOW_SWITCH return value.
authorJan Schmidt <jan@centricular.com>
Wed, 27 Jul 2022 18:17:26 +0000 (04:17 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 4 Aug 2022 13:49:33 +0000 (14:49 +0100)
Move the internal-only FLOW_SWITCH custom return value
to GST_FLOW_CUSTOM_SUCCESS+2 to avoid collision with
GST_ADAPTIVE_DEMUX_FLOW_LOST_SYNC

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

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

index 1194c11..2fd4fe3 100644 (file)
@@ -32,7 +32,7 @@
 #define MAX_DOWNLOAD_ERROR_COUNT 3
 
 /* Internal, so not using GST_FLOW_CUSTOM_SUCCESS_N */
-#define GST_ADAPTIVE_DEMUX_FLOW_SWITCH (GST_FLOW_CUSTOM_SUCCESS_2 + 1)
+#define GST_ADAPTIVE_DEMUX_FLOW_SWITCH (GST_FLOW_CUSTOM_SUCCESS_2 + 2)
 
 #define TRACKS_GET_LOCK(d) (&GST_ADAPTIVE_DEMUX_CAST(d)->priv->tracks_lock)
 #define TRACKS_LOCK(d) g_mutex_lock (TRACKS_GET_LOCK (d))