diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-12-31 19:45:54 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-12-31 19:45:54 +0000 |
commit | 37de5a081cfbc79b85aa52089ae77a92dda04b28 (patch) | |
tree | 786583d1e2ba7a73b7ab97ffc6a31869c4963601 /gst/mpegpsmux | |
parent | c056ecb02b0c194ec6647cd8d5fb5576b39e42be (diff) | |
download | gstreamer-plugins-bad-37de5a081cfbc79b85aa52089ae77a92dda04b28.tar.gz |
mpegpsmux: use gstreamer debug logging system everywhere
Diffstat (limited to 'gst/mpegpsmux')
-rw-r--r-- | gst/mpegpsmux/psmux.c | 2 | ||||
-rw-r--r-- | gst/mpegpsmux/psmuxcommon.h | 8 | ||||
-rw-r--r-- | gst/mpegpsmux/psmuxstream.c | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/gst/mpegpsmux/psmux.c b/gst/mpegpsmux/psmux.c index fbe3fe595..a8ba47867 100644 --- a/gst/mpegpsmux/psmux.c +++ b/gst/mpegpsmux/psmux.c @@ -288,7 +288,7 @@ psmux_write_stream_packet (PsMux * mux, PsMuxStream * stream) res = psmux_packet_out (mux); if (!res) { - PS_DEBUG ("packet write false"); + GST_DEBUG_OBJECT (mux, "packet write false"); return FALSE; } diff --git a/gst/mpegpsmux/psmuxcommon.h b/gst/mpegpsmux/psmuxcommon.h index 1b9538da2..ff562c6e4 100644 --- a/gst/mpegpsmux/psmuxcommon.h +++ b/gst/mpegpsmux/psmuxcommon.h @@ -49,8 +49,6 @@ #include <gst/gst.h> #include "bits.h" /* from VLC */ -#undef PS_DEBUG_ON - G_BEGIN_DECLS #define PSMUX_PACK_HDR_FREQ 30 @@ -151,12 +149,6 @@ psmux_put_ts (guint8 **pos, guint8 id, gint64 ts) psmux_put16 (pos, ((ts << 1) & 0xfffe) | 0x01); } -#ifdef PS_DEBUG_ON -#define PS_DEBUG(...) g_print(__VA_ARGS__); g_print ("\n") -#else -#define PS_DEBUG(...) -#endif - G_END_DECLS #endif diff --git a/gst/mpegpsmux/psmuxstream.c b/gst/mpegpsmux/psmuxstream.c index ce66b2f71..9c29ec42a 100644 --- a/gst/mpegpsmux/psmuxstream.c +++ b/gst/mpegpsmux/psmuxstream.c @@ -303,7 +303,7 @@ psmux_stream_get_data (PsMuxStream * stream, guint8 * buf, guint len) pes_hdr_length = psmux_stream_pes_header_length (stream); /* write pes header */ - PS_DEBUG ("Writing PES header of length %u and payload %d", + GST_LOG ("Writing PES header of length %u and payload %d", pes_hdr_length, stream->cur_pes_payload_size); psmux_stream_write_pes_header (stream, buf); |