X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Felements%2Fgstfdsrc.h;h=bafae48dbdaa563dbc4865c4a1cf0508fba24234;hb=b00b1d536141b00fa196639630b0d43d72b9fb55;hp=f780fa42f2495dc5da25c62abe7c2cd8ce8c93f7;hpb=5e5418c00e187655c63b65c6288fc9b5042c3098;p=platform%2Fupstream%2Fgstreamer.git diff --git a/plugins/elements/gstfdsrc.h b/plugins/elements/gstfdsrc.h index f780fa4..bafae48 100644 --- a/plugins/elements/gstfdsrc.h +++ b/plugins/elements/gstfdsrc.h @@ -17,8 +17,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ @@ -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 */ }; @@ -70,7 +80,7 @@ struct _GstFdSrcClass { void (*timeout) (GstElement *element); }; -GType gst_fd_src_get_type(void); +G_GNUC_INTERNAL GType gst_fd_src_get_type(void); G_END_DECLS