fix bug #96751
authorWim Taymans <wim.taymans@gmail.com>
Sun, 8 Dec 2002 01:26:02 +0000 (01:26 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 8 Dec 2002 01:26:02 +0000 (01:26 +0000)
Original commit message from CVS:
fix bug #96751

gst/parse/grammar.y

index b3b3b63..05c6ad3 100644 (file)
@@ -90,7 +90,8 @@ graph:          /* empty */          { $$ = g_new0 (graph_t, 1); *((graph_t**) p
                                      }
         |       graph connection     { $$ = $1;
                                        $$->connections = g_list_append ($$->connections, $2);
-                                       $2->src_index = $$->current->index;
+                                      if ($$->current)
+                                         $2->src_index = $$->current->index;
                                        if (!$2->sink_name)
                                            $$->connections_pending = g_list_append ($$->connections_pending, $2);
                                      }