1.1 --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Fri Dec 01 17:57:15 2006 +0000
1.2 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Fri Dec 01 19:41:39 2006 +0000
1.3 @@ -593,7 +593,6 @@
1.4 {
1.5 gint64 duration = 0;
1.6 duration = gst_nuv_demux_get_time_duration (nuv);
1.7 - g_debug ("Query");
1.8 if (duration == GST_CLOCK_TIME_NONE) {
1.9 duration = nuv->priv->duration_average;
1.10 }
1.11 @@ -821,6 +820,7 @@
1.12
1.13 done:
1.14 if (buf != NULL) {
1.15 + g_free (buf->data);
1.16 gst_buffer_unref (buf);
1.17 buf = NULL;
1.18 }
1.19 @@ -1060,7 +1060,8 @@
1.20 data = (guint8 *) gst_adapter_take (nuv->priv->adapter, size);
1.21 *buffer = gst_buffer_new ();
1.22 GST_BUFFER_SIZE (*buffer) = size;
1.23 - GST_BUFFER_MALLOCDATA (*buffer) = data;
1.24 +// GST_BUFFER_MALLOCDATA (*buffer) = g_malloc0 (size);
1.25 +// memcpy (GST_BUFFER_MALLOCDATA (*buffer), data, size);
1.26 GST_BUFFER_DATA (*buffer) = data;
1.27 } else {
1.28 guint8 *data = NULL;
1.29 @@ -1078,11 +1079,15 @@
1.30 gboolean res = TRUE;
1.31 GstNuvDemux *nuv = GST_NUV_DEMUX (gst_pad_get_parent (sinkpad));
1.32
1.33 + res = gst_pad_activate_push (sinkpad, TRUE);
1.34 + /*
1.35 +
1.36 if (gst_pad_check_pull_range (sinkpad)) {
1.37 res = gst_pad_activate_pull (sinkpad, TRUE);
1.38 } else {
1.39 res = gst_pad_activate_push (sinkpad, TRUE);
1.40 }
1.41 + */
1.42 g_object_unref (nuv);
1.43 return res;
1.44 }