} else {
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (element), value);
if (pspec != NULL) {
- target = g_object_ref (element);
+ target = G_OBJECT (g_object_ref (element));
GST_CAT_LOG_OBJECT (GST_CAT_PIPELINE, target, "found %s property", value);
} else {
SET_ERROR (graph->error, GST_PARSE_ERROR_NO_SUCH_PROPERTY, \
/*************************************************************
* Grammar explanation: (cont'd)
-* a _chain_ is a list of _elementary_s that have _link_s inbetween
+* a _chain_ is a list of _elementary_s that have _link_s in between
* which are represented through infix-notation.
*
* fakesrc ! sometransformation ! fakesink
graph_t g;
gchar *dstr;
GSList *walk;
- GstBin *bin = NULL;
GstElement *ret;
yyscan_t scanner;
/* put all elements in our bin if necessary */
if(g.chain->elements->next){
+ GstBin *bin;
if (flags & GST_PARSE_FLAG_PLACE_IN_BIN)
bin = GST_BIN (gst_element_factory_make ("bin", NULL));
else
ret = (GstElement *) g.chain->elements->data;
g_slist_free (g.chain->elements);
g.chain->elements=NULL;
- if (GST_IS_BIN (ret))
- bin = GST_BIN (ret);
gst_parse_free_chain (g.chain);
g.chain = NULL;