gst-gmyth/playbinmaemo/gstplaybinmaemo.h
author morphbr
Fri Aug 31 18:31:09 2007 +0100 (2007-08-31)
branchtrunk
changeset 837 6b3c7c0b32ad
parent 792 a6ac25bf88a7
child 852 2498e4f8c758
permissions -rw-r--r--
[svn r843] - Updated "chunked" bug on gmencoder
- Updated "poll" bug on gmencoder
- Updated wrong method name on transcoder
- Updated request_handler error message
- New version of gmyth_cat
     1 /* GStreamer
     2  *
     3  * This library is free software; you can redistribute it and/or
     4  * modify it under the terms of the GNU Library General Public
     5  * License as published by the Free Software Foundation; either
     6  * version 2 of the License, or (at your option) any later version.
     7  *
     8  * This library is distributed in the hope that it will be useful,
     9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    11  * Library General Public License for more details.
    12  *
    13  * You should have received a copy of the GNU Library General Public
    14  * License along with this library; if not, write to the
    15  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    16  * Boston, MA 02111-1307, USA.
    17  */
    18 
    19 #ifndef __GST_PLAYBINMAEMO_H__
    20 #define __GST_PLAYBINMAEMO_H__
    21 
    22 #include <gst/gst.h>
    23 
    24 G_BEGIN_DECLS
    25 
    26 #define GST_TYPE_PLAY_BIN_MAEMO \
    27     (gst_play_bin_maemo_get_type())
    28 #define GST_PLAY_BIN_MAEMO(obj) \
    29     (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemo))
    30 #define GST_PLAY_BIN_MAEMO_CLASS(klass) \
    31     (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
    32 #define GST_IS_PLAY_BIN_MAEMO(obj) \
    33     (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PLAY_BIN_MAEMO))
    34 #define GST_IS_PLAY_BIN_MAEMO_CLASS(klass) \
    35     (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PLAY_BIN_MAEMO))
    36 #define GST_PLAY_BIN_MAEMO_GET_CLASS(obj) \
    37   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
    38 
    39 typedef struct _GstPlayBinMaemo GstPlayBinMaemo;
    40 typedef struct _GstPlayBinMaemoClass GstPlayBinMaemoClass;
    41 
    42 struct _GstPlayBinMaemo {
    43   GstPipeline    pipeline;
    44 
    45   /* properties */
    46   guint64        queue_size;
    47   guint64        queue_min_threshold;
    48   gboolean       is_stream;
    49   gboolean       parse_metadata;
    50   glong          xid;
    51   gfloat         volume;
    52 
    53   /* currently loaded media */
    54   gboolean      need_rebuild;
    55   gboolean      has_metadata;
    56   gchar         *uri;
    57   GstElement    *volume_element;
    58   GstElement    *source;
    59   GstElement    *video_sink;
    60   GList         *elements;
    61   GList         *factories;
    62 };
    63 
    64 struct _GstPlayBinMaemoClass {
    65   GstPipelineClass parent_class;
    66 };
    67 
    68 GType gst_play_bin_maemo_get_type (void);
    69 
    70 G_END_DECLS
    71 
    72 #endif /* __GST_PLAYBINMAEMO_H__ */
    73