mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
23540ccc52
Original commit message from CVS: Faster and modular getbits implementation. Fixed a bug in the audiosink that could lock up your box on bad MB. Modified the plugins to use the new getbits functions.
22 lines
407 B
C
22 lines
407 B
C
#include <stdio.h>
|
|
|
|
#include "glib.h"
|
|
#include "cothreads.h"
|
|
#include "object.h"
|
|
#include "looper.h"
|
|
|
|
cothread_context *ctx;
|
|
|
|
int main(int argc,char *argv[]) {
|
|
looper *l1,*l2;
|
|
|
|
ctx = cothread_init();
|
|
|
|
l1 = looper_create("looperone",1,ctx);
|
|
l2 = looper_create("loopertwo",0,ctx);
|
|
object_setpeer(OBJECT(l1),OBJECT(l2));
|
|
|
|
fprintf(stderr,"about to start l1\n\n");
|
|
while (1)
|
|
object_start(l1);
|
|
}
|