From: Benjamin Otte Date: Sun, 13 Apr 2003 14:28:15 +0000 (+0000) Subject: converted g_print to g_printerr X-Git-Tag: BRANCH-ERROR-ROOT~219 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3c926748af8cf2b14c6f152ddb90c2ba4825b51;p=platform%2Fupstream%2Fgst-plugins-base.git converted g_print to g_printerr Original commit message from CVS: converted g_print to g_printerr --- diff --git a/ext/alsa/gstalsa.c b/ext/alsa/gstalsa.c index 54aba29..d5bf2e7 100644 --- a/ext/alsa/gstalsa.c +++ b/ext/alsa/gstalsa.c @@ -1209,7 +1209,7 @@ no_difference: int samples = MIN (bytes, samplestamp - this->transmitted) * (element->numpads == 1 ? this->format->channels : 1); int size = samples * snd_pcm_format_physical_width (this->format->format) / 8; - g_print ("Allocating %d bytes (%ld silent samples) now to resync to timestamp\n", size, MIN (bytes, samplestamp - this->transmitted)); + g_printerr ("Allocating %d bytes (%ld silent samples) now to resync to timestamp\n", size, MIN (bytes, samplestamp - this->transmitted)); pad->data = g_malloc (size); if (!pad->data) { g_warning ("GstAlsa: error allocating %d bytes, buffers unsynced now.", size); @@ -1221,14 +1221,14 @@ no_difference: } pad->behaviour = 1; } else if (gst_alsa_samples_to_bytes (this, this->transmitted - samplestamp) >= pad->buf->size) { - g_print ("Skipping %lu samples to resync (complete buffer)\n", gst_alsa_bytes_to_samples (this, pad->buf->size)); + g_printerr ("Skipping %lu samples to resync (complete buffer)\n", gst_alsa_bytes_to_samples (this, pad->buf->size)); /* this buffer is way behind */ gst_buffer_unref (pad->buf); pad->buf = NULL; continue; } else if (this->transmitted > samplestamp) { gint difference = gst_alsa_samples_to_bytes (this, this->transmitted - samplestamp); - g_print ("Skipping %lu samples to resync\n", (gulong) this->transmitted - samplestamp); + g_printerr ("Skipping %lu samples to resync\n", (gulong) this->transmitted - samplestamp); /* this buffer is only a bit behind */ pad->size = pad->buf->size - difference; pad->data = pad->buf->data + difference;