# HG changeset patch # User renatofilho # Date 1174592236 0 # Node ID ebaf693e005850228142156247e1ec4fc650c8a1 # Parent d22290a505895e2d3765b6ad5cacf694644dd995 [svn r437] bug fix diff -r d22290a50589 -r ebaf693e0058 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 Thu Mar 22 19:37:16 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);