mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
more readable g_error
Original commit message from CVS: more readable g_error
This commit is contained in:
parent
b03199444c
commit
c995758d6a
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-06-01 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst-libs/gst/media-info/media-info-priv.c: (gmi_set_mime):
|
||||
change assert to a more readable error message
|
||||
|
||||
2004-05-31 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||
|
||||
* gst-libs/gst/tuner/tunerchannel.h:
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue