mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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).
This commit is contained in:
parent
d405a6dc4f
commit
c8293b1a45
3 changed files with 17 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue