diff -r 4ba74b706853 -r 7550ece15943 gst-plugins-mythtv/src/gstmythtvsrc.h --- a/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Nov 06 23:12:21 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Nov 13 20:53:58 2006 +0000 @@ -41,15 +41,14 @@ typedef struct _GstMythtvSrc GstMythtvSrc; typedef struct _GstMythtvSrcClass GstMythtvSrcClass; - -typedef enum { +typedef enum { GST_MYTHTV_SRC_FILE_TRANSFER, GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN, GST_MYTHTV_SRC_INVALID_DATA } GstMythtvState; struct _GstMythtvSrc { - GstBaseSrc element; + GstPushSrc element; /* MythFileTransfer */ GMythFileTransfer *file_transfer; @@ -74,7 +73,7 @@ guint64 bytes_read; gint64 read_offset; - gint64 old_offset; + gint64 adapter_offset; gboolean eos; @@ -88,7 +87,7 @@ gint live_tv_id; - gint channel_num; + gint channel_num; guint mode; @@ -98,6 +97,10 @@ GstPad *sinkpad; GstPad *srcpad; + GstTask *th_read_ahead; + + GStaticRecMutex *th_mutex; + GstAdapter *adapter; /* enable Myth TV debug messages */ @@ -107,7 +110,7 @@ }; struct _GstMythtvSrcClass { - GstBaseSrcClass parent_class; + GstPushSrcClass parent_class; }; GType gst_mythtv_src_get_type (void);