~ubuntu-branches/ubuntu/karmic/gnash/karmic

« back to all changes in this revision

Viewing changes to libmedia/gst/gstbuffersrc.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-10-13 14:29:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081013142949-f6qdvnu4mn05ltdc
Tags: 0.8.4~~bzr9980-0ubuntu1
* new upstream release 0.8.4 (LP: #240325)
* ship new lib usr/lib/gnash/libmozsdk.so.* in mozilla-plugin-gnash
  - update debian/mozilla-plugin-gnash.install
* ship new lib usr/lib/gnash/libgnashnet.so.* in gnash-common
  - update debian/gnash-common.install
* add basic debian/build_head script to build latest CVS head packages.
  - add debian/build_head
* new sound architecture requires build depend on libsdl1.2-dev
  - update debian/control
* head build script now has been completely migrated to bzr (upstream +
  ubuntu)
  - update debian/build_head
* disable kde gui until klash/qt4 has been fixed; keep kde packages as empty
  packages for now.
  - update debian/rules
  - debian/klash.install
  - debian/klash.links
  - debian/klash.manpages
  - debian/konqueror-plugin-gnash.install
* drop libkonq5-dev build dependency accordingly
  - update debian/control
* don't install headers manually anymore. gnash doesnt provide a -dev
  package after all
  - update debian/rules
* update libs installed in gnash-common; libgnashserver-*.so is not available
  anymore (removed); in turn we add the new libgnashcore-*.so
  - update debian/gnash-common.install
* use -Os for optimization and properly pass CXXFLAGS=$(CFLAGS) to configure
  - update debian/rules
* touch firefox .autoreg in postinst of mozilla plugin
  - update debian/mozilla-plugin-gnash.postinst
* link gnash in ubufox plugins directory for the plugin alternative switcher
  - add debian/mozilla-plugin-gnash.links
* suggest ubufox accordingly
  - update debian/control
* add new required build-depends on libgif-dev
  - update debian/control
* add Xb-Npp-Description and Xb-Npp-File as new plugin database meta data
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// 
2
 
//   Copyright (C) 2008 Free Software Foundation, Inc.
3
 
// 
4
 
// This program is free software; you can redistribute it and/or modify
5
 
// it under the terms of the GNU General Public License as published by
6
 
// the Free Software Foundation; either version 3 of the License, or
7
 
// (at your option) any later version.
8
 
// 
9
 
// This program is distributed in the hope that it will be useful,
10
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
// GNU General Public License for more details.
13
 
// You should have received a copy of the GNU General Public License
14
 
// along with this program; if not, write to the Free Software
15
 
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16
 
 
17
 
// This file incorporates work covered by the following copyright and permission
18
 
// notice:
19
 
 
20
 
/* GStreamer
21
 
 * Copyright (C) 2007 David Schleef <ds@schleef.org>
22
 
 *
23
 
 * This library is free software; you can redistribute it and/or
24
 
 * modify it under the terms of the GNU Library General Public
25
 
 * License as published by the Free Software Foundation; either
26
 
 * version 2 of the License, or (at your option) any later version.
27
 
 *
28
 
 * This library is distributed in the hope that it will be useful,
29
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
31
 
 * Library General Public License for more details.
32
 
 *
33
 
 * You should have received a copy of the GNU Library General Public
34
 
 * License along with this library; if not, write to the
35
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
36
 
 * Boston, MA 02111-1307, USA.
37
 
 */
38
 
 
39
 
#ifndef _GNASH_BUFFER_SRC_H_
40
 
#define _GNASH_BUFFER_SRC_H_
41
 
 
42
 
#define UNUSEDPAR(x)  { x = x; }
43
 
 
44
 
#include <gst/gst.h>
45
 
#include <gst/base/gstbasesrc.h>
46
 
 
47
 
G_BEGIN_DECLS
48
 
 
49
 
#define GST_TYPE_BUFFER_SRC \
50
 
  (gst_buffer_src_get_type())
51
 
#define GST_BUFFER_SRC(obj) \
52
 
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BUFFER_SRC,GstBufferSrc))
53
 
#define GST_BUFFER_SRC_CLASS(klass) \
54
 
  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BUFFER_SRC,GstBufferSrcClass))
55
 
#define GST_IS_BUFFER_SRC(obj) \
56
 
  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BUFFER_SRC))
57
 
#define GST_IS_BUFFER_SRC_CLASS(klass) \
58
 
  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BUFFER_SRC))
59
 
 
60
 
typedef struct _GstBufferSrc GstBufferSrc;
61
 
typedef struct _GstBufferSrcClass GstBufferSrcClass;
62
 
 
63
 
struct _GstBufferSrc
64
 
{
65
 
  GstBaseSrc basesrc;
66
 
 
67
 
  /*< private >*/
68
 
  GCond *cond;
69
 
  GMutex *mutex;
70
 
  GQueue *queue;
71
 
  GstCaps *caps;
72
 
  gboolean end_of_stream;
73
 
  gboolean flush;
74
 
  guint64 total_size;
75
 
};
76
 
 
77
 
struct _GstBufferSrcClass
78
 
{
79
 
  GstBaseSrcClass basesrc_class;
80
 
};
81
 
 
82
 
GType gst_buffer_src_get_type(void);
83
 
 
84
 
GST_DEBUG_CATEGORY_EXTERN (buffer_src_debug);
85
 
 
86
 
 
87
 
void gst_buffer_src_push_buffer_unowned (GstBufferSrc *buffersrc, GstBuffer *buffer);
88
 
void gst_buffer_src_set_caps (GstBufferSrc *buffersrc, GstCaps *caps);
89
 
void gst_buffer_src_end_of_stream (GstBufferSrc *buffersrc);
90
 
void gst_buffer_src_flush (GstBufferSrc * buffersrc);
91
 
 
92
 
G_END_DECLS
93
 
 
94
 
#endif
95