mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
fix gcc 2.x compiler error, when variables aren't defined at the top.
Original commit message from CVS: fix gcc 2.x compiler error, when variables aren't defined at the top.
This commit is contained in:
parent
8bf9277aa3
commit
cbe36c876b
1 changed files with 3 additions and 2 deletions
|
@ -22,8 +22,8 @@ static uint __chains;
|
|||
gchar *
|
||||
__gst_parse_strdup (gchar *org)
|
||||
{
|
||||
gchar *ret;
|
||||
__strings++;
|
||||
gchar *ret;
|
||||
ret = g_strdup (org);
|
||||
/* g_print ("ALLOCATED STR (%3u): %p %s\n", __strings, ret, ret); */
|
||||
return ret;
|
||||
|
@ -407,12 +407,13 @@ gst_parse_perform_delayed_link (GstElement *src, const gchar *src_pad,
|
|||
GstPadTemplate *templ = (GstPadTemplate *) templs->data;
|
||||
if ((GST_PAD_TEMPLATE_DIRECTION (templ) == GST_PAD_SRC) && (GST_PAD_TEMPLATE_PRESENCE(templ) == GST_PAD_SOMETIMES))
|
||||
{
|
||||
DelayedLink *data = g_new (DelayedLink, 1);
|
||||
|
||||
/* TODO: maybe we should check if src_pad matches this template's names */
|
||||
|
||||
GST_DEBUG (GST_CAT_PIPELINE, "trying delayed link %s:%s to %s:%s",
|
||||
GST_ELEMENT_NAME (src), src_pad, GST_ELEMENT_NAME (sink), sink_pad);
|
||||
|
||||
DelayedLink *data = g_new (DelayedLink, 1);
|
||||
data->src_pad = g_strdup (src_pad);
|
||||
data->sink = sink;
|
||||
data->sink_pad = g_strdup (sink_pad);
|
||||
|
|
Loading…
Reference in a new issue