[svn r94] Changed to use GstAdapter, instead of using the guint pointer.
1 /* vim: set sw=2: -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2; c-indent-level: 2 -*- */
3 * Copyright (C) <2006> Rosfran Borges <rosfran.borges@indt.org.br>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more
16 #ifndef __GST_MYTHTV_SRC_H__
17 #define __GST_MYTHTV_SRC_H__
20 #include <gst/base/gstpushsrc.h>
21 #include <gst/base/gstadapter.h>
24 #include <gmyth/gmyth_socket.h>
25 #include <gmyth/gmyth_file_transfer.h>
26 #include <gmyth/gmyth_livetv.h>
30 #define GST_TYPE_MYTHTV_SRC \
31 (gst_mythtv_src_get_type())
32 #define GST_MYTHTV_SRC(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MYTHTV_SRC,GstMythtvSrc))
34 #define GST_MYTHTV_SRC_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MYTHTV_SRC,GstMythtvSrcClass))
36 #define GST_IS_MYTHTV_SRC(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MYTHTV_SRC))
38 #define GST_IS_MYTHTV_SRC_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MYTHTV_SRC))
41 typedef struct _GstMythtvSrc GstMythtvSrc;
42 typedef struct _GstMythtvSrcClass GstMythtvSrcClass;
45 GST_MYTHTV_SRC_FILE_TRANSFER,
46 GST_MYTHTV_SRC_NEXT_PROGRAM_CHAIN,
47 GST_MYTHTV_SRC_INVALID_DATA
50 struct _GstMythtvSrc {
53 /* MythFileTransfer */
54 GMythFileTransfer *file_transfer;
56 GMythLiveTV *spawn_livetv;
69 gint64 prev_content_size;
71 gint64 content_size_last;
76 gint64 adapter_offset;
79 /* added by melunko */
89 gboolean unique_setup;
93 gboolean enable_timing_position;
101 /* MythTV capabilities */
102 GstCaps *mythtv_caps;
107 GstTask *th_read_ahead;
109 GStaticRecMutex *th_mutex;
113 /* enable Myth TV debug messages */
114 gboolean mythtv_msgs_dbg;
116 gboolean update_prog_chain;
119 struct _GstMythtvSrcClass {
120 GstPushSrcClass parent_class;
123 GType gst_mythtv_src_get_type (void);
127 #endif /* __GST_MYTHTV_SRC_H__ */