[svn r436] bug fix trunk
authorrenatofilho
Thu Mar 22 19:32:08 2007 +0000 (2007-03-22)
branchtrunk
changeset 431d22290a50589
parent 430 4476d11d6b9a
child 432 ebaf693e0058
[svn r436] bug fix
gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c
     1.1 --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Thu Mar 22 18:54:35 2007 +0000
     1.2 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c	Thu Mar 22 19:32:08 2007 +0000
     1.3 @@ -277,9 +277,6 @@
     1.4  static void gst_nuv_demux_reset (GstNuvDemux * nuv);
     1.5  static void gst_nuv_demux_destoy_src_pad (GstNuvDemux * nuv);
     1.6  static void gst_nuv_demux_send_eos (GstNuvDemux * nuv);
     1.7 -static void gst_nuv_demux_update_duration (GstNuvDemux *nuv, guint64 current_timestamp);
     1.8 -static gint64 gst_nuv_demux_get_bytes_duration (GstNuvDemux *nuv);
     1.9 -static gint64 gst_nuv_demux_get_time_duration (GstNuvDemux *nuv);
    1.10  static void gst_nuv_demux_create_seek_index (GstNuvDemux * nuv);
    1.11  
    1.12  
    1.13 @@ -651,7 +648,14 @@
    1.14      gst_element_add_pad (GST_ELEMENT (nuv), pad);
    1.15  
    1.16      gst_pad_set_event_function (pad,
    1.17 -      gst_nuv_demux_srcpad_event);
    1.18 +      GST_DEBUG_FUNCPTR (gst_nuv_demux_srcpad_event));
    1.19 +
    1.20 +    gst_pad_set_query_type_function (pad,
    1.21 +      GST_DEBUG_FUNCPTR (gst_nuv_demux_get_src_query_types));
    1.22 +
    1.23 +    gst_pad_set_query_function (pad,
    1.24 +      GST_DEBUG_FUNCPTR (gst_nuv_demux_handle_src_query));
    1.25 +      
    1.26  
    1.27      return pad;
    1.28  }
    1.29 @@ -1105,7 +1109,7 @@
    1.30        break;
    1.31  
    1.32      case GST_NUV_DEMUX_INDEX_CREATE:
    1.33 -      if (nuv->priv->mode = NUV_PULL_MODE) {
    1.34 +      if (nuv->priv->mode == NUV_PULL_MODE) {
    1.35          gst_nuv_demux_create_seek_index (nuv);
    1.36        }
    1.37        nuv->priv->state = GST_NUV_DEMUX_FRAME_HEADER;
    1.38 @@ -1309,7 +1313,7 @@
    1.39    frame_index_data *entry;
    1.40    gint64 segment_start;
    1.41    gint64 segment_stop;
    1.42 -  GstEvent *newsegment_event;
    1.43 +  //GstEvent *newsegment_event;
    1.44  
    1.45  
    1.46    g_debug ("DEMUX SEEK");