compiler fixes

Original commit message from CVS:
compiler fixes
This commit is contained in:
Thomas Vander Stichele 2004-03-07 21:05:40 +00:00
parent b7b489166b
commit 602f6e495d
3 changed files with 6 additions and 3 deletions

View file

@ -229,7 +229,7 @@ gst_media_info_error_element (const gchar *element, GError **error)
} }
/* initialise priv; done the first time */ /* initialise priv; done the first time */
void gboolean
gmip_init (GstMediaInfoPriv *priv, GError **error) gmip_init (GstMediaInfoPriv *priv, GError **error)
{ {
#define GST_MEDIA_INFO_MAKE_OR_ERROR(el, factory, name, error) \ #define GST_MEDIA_INFO_MAKE_OR_ERROR(el, factory, name, error) \
@ -238,7 +238,7 @@ G_STMT_START { \
if (!GST_IS_ELEMENT (el)) \ if (!GST_IS_ELEMENT (el)) \
{ \ { \
gst_media_info_error_element (factory, error); \ gst_media_info_error_element (factory, error); \
return; \ return FALSE; \
} \ } \
} G_STMT_END } G_STMT_END
/* create the typefind element and make sure it stays around by reffing */ /* create the typefind element and make sure it stays around by reffing */
@ -251,6 +251,7 @@ G_STMT_START { \
/* source element for media info reading */ /* source element for media info reading */
priv->source = NULL; priv->source = NULL;
priv->source_name = NULL; priv->source_name = NULL;
return TRUE;
} }
/* called at the beginning of each use cycle */ /* called at the beginning of each use cycle */

View file

@ -104,7 +104,7 @@ GstMediaInfoTrack *
gmi_track_new (void); gmi_track_new (void);
void gmip_reset (GstMediaInfoPriv *priv); void gmip_reset (GstMediaInfoPriv *priv);
void gmip_init (GstMediaInfoPriv *priv, GError **error); gboolean gmip_init (GstMediaInfoPriv *priv, GError **error);
void gmi_clear_decoder (GstMediaInfo *info); void gmi_clear_decoder (GstMediaInfo *info);

View file

@ -100,6 +100,8 @@ typedef struct
#define GST_MEDIA_INFO_FORMAT 1 << 5 #define GST_MEDIA_INFO_FORMAT 1 << 5
#define GST_MEDIA_INFO_ALL ((1 << 6) - 1) #define GST_MEDIA_INFO_ALL ((1 << 6) - 1)
GQuark gst_media_info_error_quark (void);
void gst_media_info_init (void); void gst_media_info_init (void);
GType gst_media_info_get_type (void); GType gst_media_info_get_type (void);