gst-plugins-mythtv/src/gstmythtvsrc.h
branchtrunk
changeset 84 8b867c828e89
parent 70 4ba74b706853
child 90 f6a9705509a1
     1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.h	Mon Nov 06 23:12:21 2006 +0000
     1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h	Tue Nov 14 13:34:22 2006 +0000
     1.3 @@ -41,15 +41,14 @@
     1.4  typedef struct _GstMythtvSrc GstMythtvSrc;
     1.5  typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
     1.6  
     1.7 -
     1.8 -typedef enum {
     1.9 +typedef enum { 
    1.10    GST_MYTHTV_SRC_FILE_TRANSFER,
    1.11    GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
    1.12    GST_MYTHTV_SRC_INVALID_DATA
    1.13  } GstMythtvState;
    1.14  
    1.15  struct _GstMythtvSrc {
    1.16 -  GstBaseSrc element;
    1.17 +  GstPushSrc element;
    1.18  
    1.19    /* MythFileTransfer */
    1.20    GMythFileTransfer *file_transfer;
    1.21 @@ -74,7 +73,7 @@
    1.22    guint64 bytes_read;
    1.23  
    1.24    gint64 read_offset;
    1.25 -  gint64 old_offset;
    1.26 +  gint64 adapter_offset;
    1.27  
    1.28    gboolean eos;
    1.29    
    1.30 @@ -88,7 +87,7 @@
    1.31  
    1.32    gint live_tv_id;
    1.33    
    1.34 -  gint channel_num;
    1.35 +  gint channel_num;  
    1.36    
    1.37    guint mode;
    1.38  
    1.39 @@ -98,6 +97,10 @@
    1.40    GstPad *sinkpad;
    1.41    GstPad *srcpad;
    1.42    
    1.43 +  GstTask *th_read_ahead;
    1.44 +  
    1.45 +	GStaticRecMutex *th_mutex;
    1.46 +  
    1.47    GstAdapter *adapter;
    1.48  
    1.49    /* enable Myth TV debug messages */
    1.50 @@ -107,7 +110,7 @@
    1.51  };
    1.52  
    1.53  struct _GstMythtvSrcClass {
    1.54 -  GstBaseSrcClass parent_class;
    1.55 +  GstPushSrcClass parent_class;
    1.56  };
    1.57  
    1.58  GType gst_mythtv_src_get_type (void);