GST_ELEMENT_REGISTER_DECLARE (downloadbuffer);
GST_ELEMENT_REGISTER_DECLARE (fakesink);
GST_ELEMENT_REGISTER_DECLARE (fakesrc);
-#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
+#if defined(HAVE_SYS_SOCKET_H) || defined(G_OS_WIN32)
GST_ELEMENT_REGISTER_DECLARE (fdsrc);
GST_ELEMENT_REGISTER_DECLARE (fdsink);
#endif
ret |= GST_ELEMENT_REGISTER (downloadbuffer, plugin);
ret |= GST_ELEMENT_REGISTER (fakesrc, plugin);
ret |= GST_ELEMENT_REGISTER (fakesink, plugin);
-#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
+#if defined(HAVE_SYS_SOCKET_H) || defined(G_OS_WIN32)
ret |= GST_ELEMENT_REGISTER (fdsrc, plugin);
ret |= GST_ELEMENT_REGISTER (fdsink, plugin);
#endif
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),
GST_DEBUG_CATEGORY_INIT (gst_fd_sink__debug, "fdsink", 0, "fdsink element");
#define gst_fd_sink_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE (GstFdSink, gst_fd_sink, GST_TYPE_BASE_SINK, _do_init);
-#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
+#if defined(HAVE_SYS_SOCKET_H) || defined(G_OS_WIN32)
GST_ELEMENT_REGISTER_DEFINE (fdsink, "fdsink", GST_RANK_NONE, GST_TYPE_FD_SINK);
#endif
GST_DEBUG_CATEGORY_INIT (gst_fd_src_debug, "fdsrc", 0, "fdsrc element");
#define gst_fd_src_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE (GstFdSrc, gst_fd_src, GST_TYPE_PUSH_SRC, _do_init);
-#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
+#if defined(HAVE_SYS_SOCKET_H) || defined(G_OS_WIN32)
GST_ELEMENT_REGISTER_DEFINE (fdsrc, "fdsrc", GST_RANK_NONE, GST_TYPE_FD_SRC);
#endif
guint blocksize;
GstMapInfo info;
-#ifndef HAVE_WIN32
+#ifndef G_OS_WIN32
GstClockTime timeout;
gboolean try_again;
gint retval;
src = GST_FD_SRC (psrc);
-#ifndef HAVE_WIN32
+#ifndef G_OS_WIN32
if (src->timeout > 0) {
timeout = src->timeout * GST_USECOND;
} else {
return GST_FLOW_OK;
/* ERRORS */
-#ifndef HAVE_WIN32
+#ifndef G_OS_WIN32
poll_error:
{
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),