There was a dead assignment used outside of the bin/pipeline creation
which was confusing (and unused). Just move that variable to
where it is actually used.
(Note that that variable was not needed outside of that block since
the refactoring done in
2b33d3318519fd613dd5a4ebbd7c308609904e68 )
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;