summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-05-11 11:04:25 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-05-11 17:04:09 +0100
commitad1f7e6ed3848e5ece2e796ef9dc356485d19e56 (patch)
tree920d7a74136b90b47cc4fbf440e3cfabf0fec2ac /gst
parent513367a88cb5875c92418f9c2a93b0f3f19ab99a (diff)
downloadgst-plugins-bad-ad1f7e6ed3848e5ece2e796ef9dc356485d19e56.tar.gz
gst-plugins-bad-ad1f7e6ed3848e5ece2e796ef9dc356485d19e56.tar.bz2
gst-plugins-bad-ad1f7e6ed3848e5ece2e796ef9dc356485d19e56.zip
dvdspu: Make the debugging output a bit clearer.
Display more info about custom DVD events in the debug messages.
Diffstat (limited to 'gst')
-rw-r--r--gst/dvdspu/gstdvdspu.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index 50b6b603..82048529 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -413,13 +413,14 @@ gst_dvd_spu_video_event (GstPad * pad, GstEvent * event)
break;
}
- GST_DEBUG_OBJECT (dvdspu,
- "DVD event of type %s on video pad", event_type);
-
if (strcmp (event_type, "dvd-still") == 0) {
gboolean in_still;
if (gst_structure_get_boolean (structure, "still-state", &in_still)) {
+ GST_DEBUG_OBJECT (dvdspu,
+ "DVD event of type %s on video pad: in-still = %d", event_type,
+ in_still);
+
DVD_SPU_LOCK (dvdspu);
if (in_still) {
state->flags |= SPU_STATE_STILL_FRAME;
@@ -430,14 +431,18 @@ gst_dvd_spu_video_event (GstPad * pad, GstEvent * event)
* screen, otherwise the last frame might have been discarded
* by QoS */
gst_dvd_spu_redraw_still (dvdspu, TRUE);
- } else
+ } else {
state->flags &= ~(SPU_STATE_STILL_FRAME);
+ }
DVD_SPU_UNLOCK (dvdspu);
}
gst_event_unref (event);
res = TRUE;
- } else
+ } else {
+ GST_DEBUG_OBJECT (dvdspu,
+ "DVD event of type %s on video pad", event_type);
res = gst_pad_event_default (pad, event);
+ }
break;
}
case GST_EVENT_NEWSEGMENT: