+2008-08-30 Tim-Philipp Müller <tim.muller at collabora co uk>
+
+ * ext/raw1394/gsthdv1394src.c: (gst_hdv1394src_create):
+ * gst/alpha/gstalpha.c: (gst_alpha_get_unit_size):
+ * gst/audiofx/audiocheblimit.c: (generate_coefficients):
+ * gst/avi/gstavidemux.c: (gst_avi_demux_src_convert):
+ * gst/matroska/ebml-read.c: (gst_ebml_read_element_id),
+ (gst_ebml_read_element_length):
+ * gst/matroska/matroska-demux.c:
+ (gst_matroska_demux_check_subtitle_buffer):
+ Make stuff compile with GST_DISABLE_GST_DEBUG.
+
2008-08-28 Michael Smith <msmith@songbirdnest.com>
* gst/law/alaw.c:
goto told_to_stop;
} else if (G_LIKELY (pollfds[0].revents & POLLIN)) {
- int pt = dv1394src->frame_sequence;
+ int pt;
+
+ pt = dv1394src->frame_sequence;
/* shouldn't block in theory */
GST_LOG ("Iterating ! (%d)", dv1394src->frame_sequence);
raw1394_loop_iterate (dv1394src->handle);
gst_alpha_get_unit_size (GstBaseTransform * btrans,
GstCaps * caps, guint * size)
{
- GstAlpha *alpha = GST_ALPHA (btrans);
GstVideoFormat format;
gint width, height;
*size = gst_video_format_get_size (format, width, height);
- GST_DEBUG_OBJECT (alpha, "unit size = %d for format %d w %d height %d",
+ GST_DEBUG_OBJECT (btrans, "unit size = %d for format %d w %d height %d",
*size, format, width, height);
return TRUE;
filter->type, filter->poles, filter->cutoff, filter->ripple);
GST_LOG_OBJECT (filter, "%.2f dB gain @ 0 Hz",
20.0 * log10 (calculate_gain (a, b, np, np, 1.0, 0.0)));
+
+#ifndef GST_DISABLE_GST_DEBUG
{
gdouble wc =
2.0 * M_PI * (filter->cutoff /
20.0 * log10 (calculate_gain (a, b, np, np, zr, zi)),
(int) filter->cutoff);
}
+#endif
+
GST_LOG_OBJECT (filter, "%.2f dB gain @ %d Hz",
20.0 * log10 (calculate_gain (a, b, np, np, -1.0, 0.0)),
GST_AUDIO_FILTER (filter)->format.rate / 2);
GstFormat src_format,
gint64 src_value, GstFormat * dest_format, gint64 * dest_value)
{
- gboolean res = TRUE;
- GstAviDemux *avidemux = GST_AVI_DEMUX (GST_PAD_PARENT (pad));
-
avi_stream_context *stream = gst_pad_get_element_private (pad);
+ gboolean res = TRUE;
- GST_LOG_OBJECT (avidemux,
+ GST_LOG_OBJECT (pad,
"Received src_format:%s, src_value:%" G_GUINT64_FORMAT
", dest_format:%s", gst_format_get_name (src_format), src_value,
gst_format_get_name (*dest_format));
}
done:
- GST_LOG_OBJECT (avidemux,
+ GST_LOG_OBJECT (pad,
"Returning res:%d dest_format:%s dest_value:%" G_GUINT64_FORMAT, res,
gst_format_get_name (*dest_format), *dest_value);
return res;
len_mask >>= 1;
}
if (read > 4) {
- guint64 pos = ebml->offset;
-
GST_ERROR_OBJECT (ebml,
"Invalid EBML ID size tag (0x%x) at position %" G_GUINT64_FORMAT " (0x%"
- G_GINT64_MODIFIER "x)", (guint) b, pos, pos);
+ G_GINT64_MODIFIER "x)", (guint) b, ebml->offset, ebml->offset);
return GST_FLOW_ERROR;
}
len_mask >>= 1;
}
if (read > 8) {
- guint64 pos = ebml->offset;
-
GST_ERROR_OBJECT (ebml,
"Invalid EBML length size tag (0x%x) at position %" G_GUINT64_FORMAT
- " (0x%" G_GINT64_MODIFIER "x)", (guint) b, pos, pos);
+ " (0x%" G_GINT64_MODIFIER "x)", (guint) b, ebml->offset, ebml->offset);
return GST_FLOW_ERROR;
}
gst_matroska_demux_check_subtitle_buffer (GstElement * element,
GstMatroskaTrackContext * stream, GstBuffer ** buf)
{
- GstMatroskaDemux *demux = GST_MATROSKA_DEMUX (element);
GstMatroskaTrackSubtitleContext *sub_stream;
const gchar *encoding, *data;
GError *err = NULL;
if (g_utf8_validate (data, size, NULL)) {
return GST_FLOW_OK;
}
- GST_WARNING_OBJECT (demux, "subtitle stream %d is not valid UTF-8, this "
+ GST_WARNING_OBJECT (element, "subtitle stream %d is not valid UTF-8, this "
"is broken according to the matroska specification", stream->num);
sub_stream->invalid_utf8 = TRUE;
}
NULL, NULL, &err);
if (err) {
- GST_LOG_OBJECT (demux, "could not convert string from '%s' to UTF-8: %s",
+ GST_LOG_OBJECT (element, "could not convert string from '%s' to UTF-8: %s",
encoding, err->message);
g_error_free (err);
g_free (utf8);
NULL, NULL, NULL);
}
- GST_LOG_OBJECT (demux, "converted subtitle text from %s to UTF-8 %s",
+ GST_LOG_OBJECT (element, "converted subtitle text from %s to UTF-8 %s",
encoding, (err) ? "(using ISO-8859-15 as fallback)" : "");
if (utf8 == NULL)