mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mpegpsmux: use gstreamer debug logging system everywhere
This commit is contained in:
parent
c056ecb02b
commit
37de5a081c
3 changed files with 2 additions and 10 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue