From: Joshua P. <jpr...@us...> - 2001-09-17 17:32:18
|
Update of /cvsroot/gstreamer/gstreamer/plugins/a52dec In directory usw-pr-cvs1:/tmp/cvs-serv27560 Modified Files: Makefile.am gsta52dec.c Log Message: handle re-sync with more reliability Index: Makefile.am =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/plugins/a52dec/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 2001/09/06 20:12:17 1.1 +++ Makefile.am 2001/09/17 17:32:15 1.2 @@ -3,7 +3,7 @@ filter_LTLIBRARIES = libgsta52dec.la libgsta52dec_la_SOURCES = gsta52dec.c -libgsta52dec_la_LIBADD = -la52 +libgsta52dec_la_LIBADD = -la52 -lm noinst_HEADERS = gsta52dec.h Index: gsta52dec.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/plugins/a52dec/gsta52dec.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gsta52dec.c 2001/09/07 07:19:27 1.2 +++ gsta52dec.c 2001/09/17 17:32:15 1.3 @@ -410,7 +410,7 @@ bs = gst_bytestream_init(a52dec->sinkpad); samples = a52_init(0); // mm_accel()); // FIXME this is 0ed only untill a liba52 bug is fixed - state = g_new0(a52_state_t, 1); + state = g_new(a52_state_t, 1); do { // find and read header @@ -448,6 +448,7 @@ // process flags = a52dec->req_channels | A52_ADJUST_LEVEL; a52dec->level = 1; + memset (state, 0, sizeof (a52_state_t)); if (a52_frame (state, data, &flags, &a52dec->level, a52dec->bias)) { fprintf(stderr, "a52dec a52_frame error\n"); } |