mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +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,
|
ass_image = ass_render_frame (render->ass_renderer, render->ass_track,
|
||||||
timestamp, NULL);
|
timestamp, NULL);
|
||||||
|
|
||||||
if (ass_image == NULL) {
|
if (ass_image != NULL) {
|
||||||
GST_LOG_OBJECT (render, "nothing to render right now");
|
|
||||||
ret = gst_pad_push (render->srcpad, buffer);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
buffer = gst_buffer_make_writable (buffer);
|
buffer = gst_buffer_make_writable (buffer);
|
||||||
render->blit (render, ass_image, 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);
|
ret = gst_pad_push (render->srcpad, buffer);
|
||||||
|
|
Loading…
Reference in a new issue