From: Wim T. <wt...@us...> - 2002-02-03 20:10:07
|
Update of /cvsroot/gstreamer/gst-plugins/sys/v4l In directory usw-pr-cvs1:/tmp/cvs-serv18180/sys/v4l Modified Files: gstv4lmjpegsink.c Log Message: Assorted fixes. Use the new clocking stuff. Index: gstv4lmjpegsink.c =================================================================== RCS file: /cvsroot/gstreamer/gst-plugins/sys/v4l/gstv4lmjpegsink.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- gstv4lmjpegsink.c 2002/01/31 22:22:42 1.8 +++ gstv4lmjpegsink.c 2002/02/03 20:10:04 1.9 @@ -159,7 +159,7 @@ gst_pad_set_chain_function (v4lmjpegsink->sinkpad, gst_v4lmjpegsink_chain); gst_pad_set_connect_function (v4lmjpegsink->sinkpad, gst_v4lmjpegsink_sinkconnect); - v4lmjpegsink->clock = gst_clock_get_system(); + v4lmjpegsink->clock = gst_system_clock_obtain (); gst_clock_register(v4lmjpegsink->clock, GST_OBJECT(v4lmjpegsink)); v4lmjpegsink->width = -1; @@ -234,7 +234,8 @@ gst_clock_set (v4lmjpegsink->clock, GST_BUFFER_TIMESTAMP (buf)); } else { - gst_clock_wait(v4lmjpegsink->clock, GST_BUFFER_TIMESTAMP(buf), GST_OBJECT(v4lmjpegsink)); + //gst_clock_wait(v4lmjpegsink->clock, GST_BUFFER_TIMESTAMP(buf), GST_OBJECT(v4lmjpegsink)); + gst_clock_wait(v4lmjpegsink->clock, GST_BUFFER_TIMESTAMP(buf)); } /* check size */ |