mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
dvdspu: Make the debugging output a bit clearer.
Display more info about custom DVD events in the debug messages.
This commit is contained in:
parent
513367a88c
commit
ad1f7e6ed3
1 changed files with 10 additions and 5 deletions
|
@ -413,13 +413,14 @@ gst_dvd_spu_video_event (GstPad * pad, GstEvent * event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (dvdspu,
|
|
||||||
"DVD event of type %s on video pad", event_type);
|
|
||||||
|
|
||||||
if (strcmp (event_type, "dvd-still") == 0) {
|
if (strcmp (event_type, "dvd-still") == 0) {
|
||||||
gboolean in_still;
|
gboolean in_still;
|
||||||
|
|
||||||
if (gst_structure_get_boolean (structure, "still-state", &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);
|
DVD_SPU_LOCK (dvdspu);
|
||||||
if (in_still) {
|
if (in_still) {
|
||||||
state->flags |= SPU_STATE_STILL_FRAME;
|
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
|
* screen, otherwise the last frame might have been discarded
|
||||||
* by QoS */
|
* by QoS */
|
||||||
gst_dvd_spu_redraw_still (dvdspu, TRUE);
|
gst_dvd_spu_redraw_still (dvdspu, TRUE);
|
||||||
} else
|
} else {
|
||||||
state->flags &= ~(SPU_STATE_STILL_FRAME);
|
state->flags &= ~(SPU_STATE_STILL_FRAME);
|
||||||
|
}
|
||||||
DVD_SPU_UNLOCK (dvdspu);
|
DVD_SPU_UNLOCK (dvdspu);
|
||||||
}
|
}
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
res = TRUE;
|
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);
|
res = gst_pad_event_default (pad, event);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_EVENT_NEWSEGMENT:
|
case GST_EVENT_NEWSEGMENT:
|
||||||
|
|
Loading…
Reference in a new issue