plugins: use new gst_element_class_set_static_metadata()
[platform/upstream/gstreamer.git] / plugins / elements / gstfdsrc.h
index f780fa4..aac1d52 100644 (file)
@@ -39,26 +39,36 @@ G_BEGIN_DECLS
   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FD_SRC,GstFdSrcClass))
 #define GST_IS_FD_SRC(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FD_SRC))
-#define GST_IS_FD_SRC_CLASS(obj) \
+#define GST_IS_FD_SRC_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FD_SRC))
 
 
 typedef struct _GstFdSrc GstFdSrc;
 typedef struct _GstFdSrcClass GstFdSrcClass;
 
+/**
+ * GstFdSrc:
+ *
+ * Opaque #GstFdSrc data structure.
+ */
 struct _GstFdSrc {
   GstPushSrc element;
 
+  /*< private >*/
   /* new_fd is copied to fd on READY->PAUSED */
   gint new_fd;
 
   /* fd and flag indicating whether fd is seekable */
   gint fd;
   gboolean seekable_fd;
+  guint64 size;
+
+  /* poll timeout */
+  guint64 timeout;
 
   gchar *uri;
 
-  gint control_sock[2];
+  GstPoll *fdset;
 
   gulong curoffset; /* current offset in file */
 };