diff options
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); |