Changed the maxcothreads to 16. connect to the new_ghost_pad signal in parse.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 6 Jun 2001 18:29:57 +0000 (18:29 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 6 Jun 2001 18:29:57 +0000 (18:29 +0000)
Original commit message from CVS:
Changed the maxcothreads to 16.
connect to the new_ghost_pad signal in parse.

gst/cothreads.c
gst/gstparse.c

index 3f79101..bcf346f 100644 (file)
@@ -38,7 +38,7 @@
 
 #define STACK_SIZE 0x200000
 
-#define COTHREAD_MAXTHREADS 64
+#define COTHREAD_MAXTHREADS 16
 #define COTHREAD_STACKSIZE (STACK_SIZE/COTHREAD_MAXTHREADS)
 
 struct _cothread_context {
index 5574878..75dc668 100644 (file)
@@ -279,6 +279,7 @@ if (GST_IS_GHOST_PAD(srcpad)) GST_DEBUG(0,"it's a ghost pad\n");
                          srcpadname,GST_DEBUG_PAD_NAME(sinkpad));
 
          gtk_signal_connect (GTK_OBJECT (previous), "new_pad", dynamic_connect, connect);
+         gtk_signal_connect (GTK_OBJECT (previous), "new_ghost_pad", dynamic_connect, connect);
         }
         else {
           GST_DEBUG(0,"CONNECTING %s:%s and %s:%s\n",GST_DEBUG_PAD_NAME(srcpad),GST_DEBUG_PAD_NAME(sinkpad));