Commit 37de5a08 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

mpegpsmux: use gstreamer debug logging system everywhere

parent c056ecb0
......@@ -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;
}
......
......@@ -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
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment