summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-04-01 02:25:42 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-04-02 14:46:22 +0100
commit0b73fd28700eb47c64c941648a0c5518b78a2d80 (patch)
tree330bf739e7d9238b717526e52278ca01d09f4eba /gst
parent3eba30d5099619855bb5ed758b870a51cecb8c4b (diff)
downloadgst-plugins-bad-0b73fd28700eb47c64c941648a0c5518b78a2d80.tar.gz
gst-plugins-bad-0b73fd28700eb47c64c941648a0c5518b78a2d80.tar.bz2
gst-plugins-bad-0b73fd28700eb47c64c941648a0c5518b78a2d80.zip
dvdspu: Add some debug
Add a little bit of extra debug. Wrap a hardcoded #if 0 into a define instead.
Diffstat (limited to 'gst')
-rw-r--r--gst/dvdspu/gstdvdspu.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index 9fc6346a..6ad8ed06 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -38,6 +38,8 @@
#include "gstdvdspu.h"
+#define DUMP_DCSQ 0
+
extern void gst_dvd_spu_render_spu (GstDVDSpu * dvdspu, GstBuffer * buf);
GST_DEBUG_CATEGORY (dvdspu_debug);
@@ -1004,7 +1006,7 @@ gst_dvd_spu_handle_dvd_event (GstDVDSpu * dvdspu, GstEvent * event)
gst_event_unref (event);
}
-#if 0
+#if DUMP_DCSQ
static void
gst_dvd_spu_dump_dcsq (GstDVDSpu * dvdspu,
GstClockTime start_ts, GstBuffer * spu_buf)
@@ -1073,12 +1075,16 @@ gst_dvd_spu_advance_spu (GstDVDSpu * dvdspu, GstClockTime new_ts)
dvdspu->video_seg.last_stop);
GST_LOG_OBJECT (dvdspu,
"Popped new SPU packet with TS %" GST_TIME_FORMAT
- ". Video last_stop=%" GST_TIME_FORMAT " (%" GST_TIME_FORMAT ")",
+ ". Video last_stop=%" GST_TIME_FORMAT " (%" GST_TIME_FORMAT
+ ") type %s",
GST_TIME_ARGS (packet->event_ts), GST_TIME_ARGS (vid_run_ts),
- GST_TIME_ARGS (dvdspu->video_seg.last_stop));
+ GST_TIME_ARGS (dvdspu->video_seg.last_stop),
+ packet->buf ? "buffer" : "event");
if (packet->buf) {
- // gst_dvd_spu_dump_dcsq (dvdspu, packet->event_ts, packet->buf);
+#if DUMP_DCSQ
+ gst_dvd_spu_dump_dcsq (dvdspu, packet->event_ts, packet->buf);
+#endif
gst_dvd_spu_handle_new_spu_buf (dvdspu, packet);
}
if (packet->event)