Bump GLib requirement to >= 2.62
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-base / gst-libs / gst / rtsp / gstrtspconnection.c
index 0ad9be3..67cc4f5 100644 (file)
@@ -1304,7 +1304,6 @@ error:
 }
 
 /* NOTE: This changes the values of vectors if multiple iterations are needed! */
-#if GLIB_CHECK_VERSION(2, 59, 1)
 static GstRTSPResult
 writev_bytes (GOutputStream * stream, GOutputVector * vectors, gint n_vectors,
     gsize * bytes_written, gboolean block, GCancellable * cancellable)
@@ -1373,31 +1372,6 @@ error:
     return ret;
   }
 }
-#else
-static GstRTSPResult
-writev_bytes (GOutputStream * stream, GOutputVector * vectors, gint n_vectors,
-    gsize * bytes_written, gboolean block, GCancellable * cancellable)
-{
-  gsize _bytes_written = 0;
-  guint written;
-  gint i;
-  GstRTSPResult res = GST_RTSP_OK;
-
-  for (i = 0; i < n_vectors; i++) {
-    written = 0;
-    res =
-        write_bytes (stream, vectors[i].buffer, &written, vectors[i].size,
-        block, cancellable);
-    _bytes_written += written;
-    if (G_UNLIKELY (res != GST_RTSP_OK))
-      break;
-  }
-
-  *bytes_written = _bytes_written;
-
-  return res;
-}
-#endif
 
 static gint
 fill_raw_bytes (GstRTSPConnection * conn, guint8 * buffer, guint size,