diff -r d22290a50589 -r 84d70ba2ac65 gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c --- a/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Thu Mar 22 19:32:08 2007 +0000 +++ b/gst-plugins-nuvdemux/nuvdemux/gstnuvdemux.c Fri Mar 23 13:47:31 2007 +0000 @@ -620,8 +620,7 @@ break; case GST_QUERY_DURATION: { - g_debug ("QUERY DURATION %" G_GUINT64_FORMAT, nuv->priv->duration_time); - if (nuv->priv->duration_time == GST_CLOCK_TIME_NONE) { + if (nuv->priv->duration_time != GST_CLOCK_TIME_NONE) { gst_query_set_duration (query, GST_FORMAT_TIME, nuv->priv->duration_time); res = TRUE; } @@ -758,14 +757,11 @@ do { ret = gst_nuv_demux_frame_header_load (nuv, &nuv->priv->fh); if (ret != GST_FLOW_OK) { - g_debug ("FAIL TO READ HEADER"); return ret; } if (gst_nuv_demux_validate_header (&nuv->priv->fh) == TRUE) - valid = TRUE; - else - g_debug ("Invalid frame header"); + valid = TRUE; } while (valid == FALSE);