diff -r 957b55b3f630 -r bca1fb717911 gst-plugins-mythtv/src/gstmythtvsrc.h --- a/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Oct 30 22:55:19 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h Fri Nov 10 19:21:45 2006 +0000 @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -40,6 +41,13 @@ typedef struct _GstMythtvSrc GstMythtvSrc; typedef struct _GstMythtvSrcClass GstMythtvSrcClass; + +typedef enum { + GST_MYTHTV_SRC_FILE_TRANSFER, + GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN, + GST_MYTHTV_SRC_INVALID_DATA +} GstMythtvState; + struct _GstMythtvSrc { GstBaseSrc element; @@ -47,6 +55,8 @@ GMythFileTransfer *file_transfer; GMythLiveTV *spawn_livetv; + + GstMythtvState state; gchar *uri_name; gchar *user_agent; @@ -64,6 +74,7 @@ guint64 bytes_read; gint64 read_offset; + gint64 old_offset; gboolean eos; @@ -76,9 +87,18 @@ gboolean enable_timing_position; gint live_tv_id; + + gint channel_num; + + guint mode; /* MythTV capabilities */ GstCaps *mythtv_caps; + + GstPad *sinkpad; + GstPad *srcpad; + + GstAdapter *adapter; /* enable Myth TV debug messages */ gboolean mythtv_msgs_dbg;