+2008-05-22 Tim-Philipp Müller <tim.muller at collabora co uk>
+
+ * gst/gstparse.c: (_gst_parse_escape), (gst_parse_launchv):
+ * gst/gstutils.c: (gst_parse_bin_from_description):
+ * gst/parse/grammar.y: (graph):
+ More guards against bad input; typo fix; some minor clean-ups.
+
2008-05-22 Sebastian Dröge <slomo@circular-chaos.org>
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* @short_description: Get a pipeline from a text pipeline description
*
* These function allow to create a pipeline based on the syntax used in the
- * gst-launch utillity.
+ * gst-launch utility.
*/
_gst_parse_escape (const gchar * str)
{
GString *gstr = NULL;
- gchar *newstr = NULL;
g_return_val_if_fail (str != NULL, NULL);
str++;
}
- newstr = gstr->str;
- g_string_free (gstr, FALSE);
-
- return newstr;
+ return g_string_free (gstr, FALSE);
}
#endif /* !GST_DISABLE_PARSE */
gchar *tmp;
g_return_val_if_fail (argv != NULL, NULL);
+ g_return_val_if_fail (error == NULL || *error == NULL, NULL);
/* let's give it a nice size. */
str = g_string_sized_new (1024);
#else
gchar *msg;
- GST_WARNING ("Disabled API called: gst_parse_launchv()");
+ GST_WARNING ("Disabled API called");
msg = gst_error_get_message (GST_CORE_ERROR, GST_CORE_ERROR_DISABLED);
g_set_error (error, GST_CORE_ERROR, GST_CORE_ERROR_DISABLED, "%s", msg);
#else
gchar *msg;
- GST_WARNING ("Disabled API called: gst_parse_bin_from_description()");
+ GST_WARNING ("Disabled API called");
msg = gst_error_get_message (GST_CORE_ERROR, GST_CORE_ERROR_DISABLED);
g_set_error (err, GST_CORE_ERROR, GST_CORE_ERROR_DISABLED, "%s", msg);