flow_ret = GST_FLOW_FLUSHING;
goto out;
}
-#ifndef HAVE_WIN32
+#ifndef G_OS_WIN32
if (fdset != NULL) {
do {
GST_DEBUG_OBJECT (sink, "going into select, have %" G_GSSIZE_FORMAT
} else {
goto write_error;
}
-#ifdef HAVE_WIN32
+#ifdef G_OS_WIN32
/* do short sleep on windows where we don't use gst_poll(),
* to avoid excessive busy looping */
if (fdset != NULL)
return flow_ret;
/* ERRORS */
-#ifndef HAVE_WIN32
+#ifndef G_OS_WIN32
select_error:
{
GST_ELEMENT_ERROR (sink, RESOURCE, READ, (NULL),
current_buf_mem_idx = 0;
}
current_buf_idx = i;
+ if (current_buf_mem_idx != 0) {
+ g_assert (current_buf_idx > 0);
+ current_buf_idx--;
+ }
}
do {
current_buf_mem_idx = 0;
}
current_buf_idx = i;
+ if (current_buf_mem_idx != 0) {
+ g_assert (current_buf_idx > 0);
+ current_buf_idx--;
+ }
}
} while (left > 0);