1.1 --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Thu Apr 05 15:26:47 2007 +0100
1.2 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Thu Apr 05 16:02:08 2007 +0100
1.3 @@ -229,7 +229,7 @@
1.4 nuv_frame_header fh;
1.5
1.6 /* anothers info */
1.7 - gint64 header_lengh;
1.8 + guint64 header_lengh;
1.9 gint64 time_start;
1.10 gint64 time_diff;
1.11 gint64 time_qos;
1.12 @@ -698,7 +698,6 @@
1.13 gst_nuv_demux_validate_header (nuv_frame_header *h)
1.14 {
1.15 gboolean valid = FALSE;
1.16 - //g_debug ("Type %d = Compression %d", h->i_type, h->i_compression);
1.17 //g_usleep (1 * G_USEC_PER_SEC );
1.18 switch (h->i_type) {
1.19 /*
1.20 @@ -799,7 +798,6 @@
1.21 h = nuv->priv->fh;
1.22
1.23 if (h.i_type == 'R') {
1.24 - nuv->priv->offset += h.i_length;
1.25 goto done;
1.26 }
1.27
1.28 @@ -1044,7 +1042,7 @@
1.29 }
1.30 GST_DEBUG_OBJECT (nuv, "CREATING INDEX: DONE : DURATION Bytes/Sec: %" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT,
1.31 nuv->priv->offset, nuv->priv->duration_time);
1.32 -
1.33 +
1.34 nuv->priv->duration_bytes = nuv->priv->offset;
1.35 nuv->priv->offset = nuv->priv->header_lengh;
1.36
1.37 @@ -1107,8 +1105,6 @@
1.38 if (nuv->priv->mode == NUV_PULL_MODE) {
1.39 gst_nuv_demux_create_seek_index (nuv);
1.40 }
1.41 - nuv->priv->state = GST_NUV_DEMUX_FRAME_HEADER;
1.42 - break;
1.43
1.44 case GST_NUV_DEMUX_FRAME_HEADER:
1.45 res = gst_nuv_demux_read_head_frame (nuv);
1.46 @@ -1175,6 +1171,7 @@
1.47 return ret;
1.48 }
1.49
1.50 +
1.51 if (nuv->priv->mode == NUV_PULL_MODE) {
1.52 ret = gst_pad_pull_range (nuv->priv->sinkpad, nuv->priv->offset, size, buffer);
1.53 if (ret == GST_FLOW_OK) {