# HG changeset patch # User renatofilho # Date 1174591928 0 # Node ID d22290a505895e2d3765b6ad5cacf694644dd995 # Parent 4476d11d6b9a5ceada96d2cc3a8946ca01eaec1f [svn r436] bug fix diff -r 4476d11d6b9a -r d22290a50589 gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Thu Mar 22 18:54:35 2007 +0000 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Thu Mar 22 19:32:08 2007 +0000 @@ -277,9 +277,6 @@ static void gst_nuv_demux_reset (GstNuvDemux * nuv); static void gst_nuv_demux_destoy_src_pad (GstNuvDemux * nuv); static void gst_nuv_demux_send_eos (GstNuvDemux * nuv); -static void gst_nuv_demux_update_duration (GstNuvDemux *nuv, guint64 current_timestamp); -static gint64 gst_nuv_demux_get_bytes_duration (GstNuvDemux *nuv); -static gint64 gst_nuv_demux_get_time_duration (GstNuvDemux *nuv); static void gst_nuv_demux_create_seek_index (GstNuvDemux * nuv); @@ -651,7 +648,14 @@ gst_element_add_pad (GST_ELEMENT (nuv), pad); gst_pad_set_event_function (pad, - gst_nuv_demux_srcpad_event); + GST_DEBUG_FUNCPTR (gst_nuv_demux_srcpad_event)); + + gst_pad_set_query_type_function (pad, + GST_DEBUG_FUNCPTR (gst_nuv_demux_get_src_query_types)); + + gst_pad_set_query_function (pad, + GST_DEBUG_FUNCPTR (gst_nuv_demux_handle_src_query)); + return pad; } @@ -1105,7 +1109,7 @@ break; case GST_NUV_DEMUX_INDEX_CREATE: - if (nuv->priv->mode = NUV_PULL_MODE) { + if (nuv->priv->mode == NUV_PULL_MODE) { gst_nuv_demux_create_seek_index (nuv); } nuv->priv->state = GST_NUV_DEMUX_FRAME_HEADER; @@ -1309,7 +1313,7 @@ frame_index_data *entry; gint64 segment_start; gint64 segment_stop; - GstEvent *newsegment_event; + //GstEvent *newsegment_event; g_debug ("DEMUX SEEK");