diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-06 20:15:17 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-06 20:15:17 +0000 |
commit | a11cf2ec0a951b954857ebfa83abbfa4ac6db77e (patch) | |
tree | 85cf3d361aec395499664aa7e287e1d7d631f672 /gst-libs/gst/media-info/media-info-priv.h | |
parent | fe6bf805dc044cf8dc369fb154601322c8f23718 (diff) | |
download | gst-plugins-bad-a11cf2ec0a951b954857ebfa83abbfa4ac6db77e.tar.gz gst-plugins-bad-a11cf2ec0a951b954857ebfa83abbfa4ac6db77e.tar.bz2 gst-plugins-bad-a11cf2ec0a951b954857ebfa83abbfa4ac6db77e.zip |
first pass at making this work again needs quite a lot of cleanups
Original commit message from CVS:
first pass at making this work again
needs quite a lot of cleanups
Diffstat (limited to 'gst-libs/gst/media-info/media-info-priv.h')
-rw-r--r-- | gst-libs/gst/media-info/media-info-priv.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gst-libs/gst/media-info/media-info-priv.h b/gst-libs/gst/media-info/media-info-priv.h index 84f6113f..21e252e5 100644 --- a/gst-libs/gst/media-info/media-info-priv.h +++ b/gst-libs/gst/media-info/media-info-priv.h @@ -63,26 +63,25 @@ typedef enum /* private structure */ struct GstMediaInfoPriv { - GstElement *pipeline; - GstElement *typefind; GstCaps *type; - GstPad *decoder_pad; /* pad for querying decoded caps */ - GstPad *source_pad; /* pad for querying encoded caps */ GstCaps *format; - GstCaps *metadata; + GstTagList *metadata; gint metadata_iters; - GstCaps *streaminfo; + GstTagList *streaminfo; - GstElement *decoder; /* will be != NULL during collection */ + GstElement *pipeline; /* will be != NULL during collection */ + gchar *pipeline_desc; /* will be != NULL during collection */ GstElement *fakesink; /* so we can get caps from the decoder sink pad */ - gchar *source_element; /* type of element used as source */ + gchar *source_name; /* type of element used as source */ GstElement *source; - - GHashTable *decoders; /* a table of decoder GstElements */ + GstPad *source_pad; /* pad for querying encoded caps */ + GstElement *decoder; + GstPad *decoder_pad; /* pad for querying decoded caps */ + GstElement *decontainer; /* element to typefind in containers */ GstMediaInfoState state; /* current state of state machine */ gchar *location; /* location set on the info object */ @@ -92,6 +91,8 @@ struct GstMediaInfoPriv GstMediaInfoStream *stream; /* total stream properties */ char *cache; /* location of cache */ + + GError *error; /* error for creation problems */ }; /* declarations */ @@ -106,16 +107,15 @@ void gmi_reset (GstMediaInfo *info); gboolean gmi_seek_to_track (GstMediaInfo *info, long track); -GstElement * gmi_get_decoder (GstMediaInfo *info, +gboolean gmi_set_mime (GstMediaInfo *info, const char *mime); -void gmi_set_decoder (GstMediaInfo *info, - GstElement *decoder); -void gmi_clear_decoder (GstMediaInfo *info); void deep_notify_callback (GObject *object, GstObject *origin, GParamSpec *pspec, GstMediaInfoPriv *priv); +void found_tag_callback (GObject *pipeline, GstElement *source, GstTagList *tags, GstMediaInfoPriv *priv); +void error_callback (GObject *element, GstElement *source, GError *error, gchar *debug); gboolean gmip_find_type_pre (GstMediaInfoPriv *priv); gboolean gmip_find_type_post (GstMediaInfoPriv *priv); |