Commit c8293b1a authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

gst/gstelement.*: Make strings passed to...

gst/gstelement.*: Make strings passed to gst_element_class_set_details_simple() constant, as they should be (#462752).

Original commit message from CVS:
* gst/gstelement.c: (gst_element_class_set_details_simple):
* gst/gstelement.h:
Make strings passed to gst_element_class_set_details_simple()
constant, as they should be (#462752).
parent d405a6dc
2007-08-02 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstelement.c: (gst_element_class_set_details_simple):
* gst/gstelement.h:
Make strings passed to gst_element_class_set_details_simple()
constant, as they should be (#462752).
2007-08-02 Wim Taymans <wim.taymans@gmail.com>
* gst/gstbin.c: (gst_bin_change_state_func),
......
......@@ -1159,11 +1159,13 @@ gst_element_class_set_details (GstElementClass * klass,
* Since: 0.10.14
*/
void
gst_element_class_set_details_simple (GstElementClass * klass, gchar * longname,
gchar * classification, gchar * description, gchar * author)
gst_element_class_set_details_simple (GstElementClass * klass,
const gchar * longname, const gchar * classification,
const gchar * description, const gchar * author)
{
const GstElementDetails details =
GST_ELEMENT_DETAILS (longname, classification, description, author);
GST_ELEMENT_DETAILS ((gchar *) longname, (gchar *) classification,
(gchar *) description, (gchar *) author);
g_return_if_fail (GST_IS_ELEMENT_CLASS (klass));
......
......@@ -533,7 +533,11 @@ void gst_element_class_add_pad_template (GstElementClass *klass, GstPadTemplat
GstPadTemplate* gst_element_class_get_pad_template (GstElementClass *element_class, const gchar *name);
GList* gst_element_class_get_pad_template_list (GstElementClass *element_class);
void gst_element_class_set_details (GstElementClass *klass, const GstElementDetails *details);
void gst_element_class_set_details_simple (GstElementClass *klass, gchar *longname, gchar *classification, gchar *description, gchar *author);
void gst_element_class_set_details_simple (GstElementClass *klass,
const gchar *longname,
const gchar *classification,
const gchar *description,
const gchar *author);
/* element instance */
GType gst_element_get_type (void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment