1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Oct 30 22:55:19 2006 +0000
1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.h Mon Nov 06 23:12:21 2006 +0000
1.3 @@ -18,6 +18,7 @@
1.4
1.5 #include <gst/gst.h>
1.6 #include <gst/base/gstpushsrc.h>
1.7 +#include <gst/base/gstadapter.h>
1.8 #include <stdio.h>
1.9
1.10 #include <gmyth/gmyth_socket.h>
1.11 @@ -40,6 +41,13 @@
1.12 typedef struct _GstMythtvSrc GstMythtvSrc;
1.13 typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
1.14
1.15 +
1.16 +typedef enum {
1.17 + GST_MYTHTV_SRC_FILE_TRANSFER,
1.18 + GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
1.19 + GST_MYTHTV_SRC_INVALID_DATA
1.20 +} GstMythtvState;
1.21 +
1.22 struct _GstMythtvSrc {
1.23 GstBaseSrc element;
1.24
1.25 @@ -47,6 +55,8 @@
1.26 GMythFileTransfer *file_transfer;
1.27
1.28 GMythLiveTV *spawn_livetv;
1.29 +
1.30 + GstMythtvState state;
1.31
1.32 gchar *uri_name;
1.33 gchar *user_agent;
1.34 @@ -64,6 +74,7 @@
1.35 guint64 bytes_read;
1.36
1.37 gint64 read_offset;
1.38 + gint64 old_offset;
1.39
1.40 gboolean eos;
1.41
1.42 @@ -76,9 +87,18 @@
1.43 gboolean enable_timing_position;
1.44
1.45 gint live_tv_id;
1.46 +
1.47 + gint channel_num;
1.48 +
1.49 + guint mode;
1.50
1.51 /* MythTV capabilities */
1.52 GstCaps *mythtv_caps;
1.53 +
1.54 + GstPad *sinkpad;
1.55 + GstPad *srcpad;
1.56 +
1.57 + GstAdapter *adapter;
1.58
1.59 /* enable Myth TV debug messages */
1.60 gboolean mythtv_msgs_dbg;