mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
assrender: Improve debug output a bit and simplify code
This commit is contained in:
parent
d85be17a00
commit
bb757ad0bb
1 changed files with 6 additions and 6 deletions
|
@ -1018,14 +1018,14 @@ gst_ass_render_chain_video (GstPad * pad, GstBuffer * buffer)
|
|||
ass_image = ass_render_frame (render->ass_renderer, render->ass_track,
|
||||
timestamp, NULL);
|
||||
|
||||
if (ass_image == NULL) {
|
||||
GST_LOG_OBJECT (render, "nothing to render right now");
|
||||
ret = gst_pad_push (render->srcpad, buffer);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (ass_image != NULL) {
|
||||
buffer = gst_buffer_make_writable (buffer);
|
||||
render->blit (render, ass_image, buffer);
|
||||
} else {
|
||||
GST_LOG_OBJECT (render, "nothing to render right now");
|
||||
}
|
||||
} else {
|
||||
GST_LOG_OBJECT (render, "rendering disabled, doing buffer passthrough");
|
||||
}
|
||||
|
||||
ret = gst_pad_push (render->srcpad, buffer);
|
||||
|
|
Loading…
Reference in a new issue