diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-06-01 08:51:55 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-06-01 08:51:55 +0000 |
commit | c995758d6a4c7ba7f568964c1a850b55743f44f3 (patch) | |
tree | 0fcc5cc8bbe45a9dad96613c65d3dd866f947052 /gst-libs/gst/media-info | |
parent | b03199444c8f0714e1d4cdaa7146c051e73525c0 (diff) | |
download | gst-plugins-bad-c995758d6a4c7ba7f568964c1a850b55743f44f3.tar.gz gst-plugins-bad-c995758d6a4c7ba7f568964c1a850b55743f44f3.tar.bz2 gst-plugins-bad-c995758d6a4c7ba7f568964c1a850b55743f44f3.zip |
more readable g_error
Original commit message from CVS:
more readable g_error
Diffstat (limited to 'gst-libs/gst/media-info')
-rw-r--r-- | gst-libs/gst/media-info/media-info-priv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/media-info/media-info-priv.c b/gst-libs/gst/media-info/media-info-priv.c index 22ac6c45..fc0e9be8 100644 --- a/gst-libs/gst/media-info/media-info-priv.c +++ b/gst-libs/gst/media-info/media-info-priv.c @@ -395,6 +395,9 @@ gmi_set_mime (GstMediaInfo * info, const char *mime) } /* get a bunch of elements from the bin */ priv->source = gst_bin_get_by_name (GST_BIN (priv->pipeline), "source"); + if (!GST_IS_ELEMENT (priv->source)) + g_error ("Could not create source element '%s'", priv->source_name); + g_assert (GST_IS_ELEMENT (priv->source)); g_object_set (G_OBJECT (priv->source), "location", priv->location, NULL); priv->decoder = gst_bin_get_by_name (GST_BIN (priv->pipeline), "decoder"); |