mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-07 07:55:41 +00:00
Make debugging code less CPU consuling when compiled out.
Original commit message from CVS: Make debugging code less CPU consuling when compiled out.
This commit is contained in:
parent
b51de8d6ee
commit
3e00a80989
1 changed files with 11 additions and 4 deletions
|
@ -26,8 +26,15 @@
|
||||||
#include <gst/gstinfo.h>
|
#include <gst/gstinfo.h>
|
||||||
#include "gstbytestream.h"
|
#include "gstbytestream.h"
|
||||||
|
|
||||||
//#define bs_print(format,args...) g_print(format, ## args)
|
//#define BS_DEBUG
|
||||||
#define bs_print(format,args...)
|
|
||||||
|
#ifdef BS_DEBUG
|
||||||
|
# define bs_print(format,args...) GST_DEBUG (GST_CAT_BUFFER, format, ## args)
|
||||||
|
# define bs_status(bs) gst_bytestream_print_status(bs)
|
||||||
|
#else
|
||||||
|
# define bs_print(format,args...)
|
||||||
|
# define bs_status(bs)
|
||||||
|
#endif
|
||||||
|
|
||||||
//static void gst_bytestream_print_status(GstByteStream *bs);
|
//static void gst_bytestream_print_status(GstByteStream *bs);
|
||||||
guint8 *gst_bytestream_assemble (GstByteStream * bs, guint32 len);
|
guint8 *gst_bytestream_assemble (GstByteStream * bs, guint32 len);
|
||||||
|
@ -198,7 +205,7 @@ gst_bytestream_peek_loc (GST_WHERE_ARGS_ GstByteStream * bs, guint32 len)
|
||||||
return NULL;
|
return NULL;
|
||||||
bs_print ("peek: there are now %d bytes in the list\n", bs->listavail);
|
bs_print ("peek: there are now %d bytes in the list\n", bs->listavail);
|
||||||
}
|
}
|
||||||
gst_bytestream_print_status (bs);
|
bs_status (bs);
|
||||||
|
|
||||||
// extract the head buffer
|
// extract the head buffer
|
||||||
headbuf = GST_BUFFER (bs->buflist->data);
|
headbuf = GST_BUFFER (bs->buflist->data);
|
||||||
|
@ -243,7 +250,7 @@ gst_bytestream_peek_bytes (GstByteStream * bs, guint32 len)
|
||||||
return NULL;
|
return NULL;
|
||||||
bs_print ("peek_bytes: there are now %d bytes in the list\n", bs->listavail);
|
bs_print ("peek_bytes: there are now %d bytes in the list\n", bs->listavail);
|
||||||
}
|
}
|
||||||
gst_bytestream_print_status (bs);
|
bs_status (bs);
|
||||||
|
|
||||||
// extract the head buffer
|
// extract the head buffer
|
||||||
headbuf = GST_BUFFER (bs->buflist->data);
|
headbuf = GST_BUFFER (bs->buflist->data);
|
||||||
|
|
Loading…
Reference in a new issue