mpegpsmux: use gstreamer debug logging system everywhere

This commit is contained in:
Tim-Philipp Müller 2012-12-31 19:45:54 +00:00
parent c056ecb02b
commit 37de5a081c
3 changed files with 2 additions and 10 deletions

View file

@ -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;
}

View file

@ -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

View file

@ -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);