mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +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,17 +184,15 @@ 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) {
|
||||
g_free (padname);
|
||||
}
|
||||
GST_DEBUG_OBJECT (elem, "activated selector pad: %s", GST_STR_NULL (padname));
|
||||
g_free (padname);
|
||||
}
|
||||
|
||||
/* Push buffers and switch for each selector pad */
|
||||
|
|
Loading…
Reference in a new issue