mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
Add -Wwrite-strings
and fix its warnings
This commit is contained in:
parent
9bb7806e01
commit
8915626090
1 changed files with 4 additions and 6 deletions
|
@ -38,7 +38,7 @@ static gboolean
|
|||
probe_cb (GstPad * pad, GstMiniObject * obj, gpointer user_data)
|
||||
{
|
||||
gint count = 0;
|
||||
gchar *count_type = NULL;
|
||||
const gchar *count_type = NULL;
|
||||
|
||||
GST_LOG_OBJECT (pad, "got data");
|
||||
|
||||
|
@ -184,18 +184,16 @@ count_output_buffers (GList * output_pads, gint expected_buffers)
|
|||
static void
|
||||
selector_set_active_pad (GstElement * elem, GstPad * selpad)
|
||||
{
|
||||
gchar *padname = "";
|
||||
gchar *padname = NULL;
|
||||
|
||||
if (selpad) {
|
||||
padname = gst_pad_get_name (selpad);
|
||||
}
|
||||
|
||||
g_object_set (G_OBJECT (elem), "active-pad", selpad, NULL);
|
||||
GST_DEBUG_OBJECT (elem, "activated selector pad: %s", padname);
|
||||
if (selpad) {
|
||||
GST_DEBUG_OBJECT (elem, "activated selector pad: %s", GST_STR_NULL (padname));
|
||||
g_free (padname);
|
||||
}
|
||||
}
|
||||
|
||||
/* Push buffers and switch for each selector pad */
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue