mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-27 08:48:19 +00:00
ext/taglib/gsttaglib.cc: Post an error message on the bus in the (extremely unlikely) case of an error.
Original commit message from CVS: * ext/taglib/gsttaglib.cc: Post an error message on the bus in the (extremely unlikely) case of an error.
This commit is contained in:
parent
6fbf187762
commit
f68caad5c2
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* ext/taglib/gsttaglib.cc:
|
||||||
|
Post an error message on the bus in the (extremely unlikely)
|
||||||
|
case of an error.
|
||||||
|
|
||||||
2006-04-29 Tim-Philipp Müller <tim at centricular dot net>
|
2006-04-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/taglib/Makefile.am:
|
* ext/taglib/Makefile.am:
|
||||||
|
|
|
@ -189,12 +189,14 @@ gst_tag_lib_mux_render_tag (GstTagLibMux * mux)
|
||||||
|
|
||||||
no_vfunc:
|
no_vfunc:
|
||||||
{
|
{
|
||||||
return NULL; /* FIXME */
|
GST_ERROR_OBJECT (mux, "Subclass does not implement render_tag vfunc!");
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
render_error:
|
render_error:
|
||||||
{
|
{
|
||||||
return NULL; /* FIXME */
|
GST_ERROR_OBJECT (mux, "Failed to render tag");
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,9 +233,13 @@ gst_tag_lib_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
if (mux->render_tag) {
|
if (mux->render_tag) {
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
GstBuffer *tag_buffer;
|
||||||
|
|
||||||
GST_INFO_OBJECT (mux, "Adding tags to stream");
|
GST_INFO_OBJECT (mux, "Adding tags to stream");
|
||||||
ret = gst_pad_push (mux->srcpad, gst_tag_lib_mux_render_tag (mux));
|
tag_buffer = gst_tag_lib_mux_render_tag (mux);
|
||||||
|
if (tag_buffer == NULL)
|
||||||
|
goto no_tag_buffer;
|
||||||
|
ret = gst_pad_push (mux->srcpad, tag_buffer);
|
||||||
if (ret != GST_FLOW_OK) {
|
if (ret != GST_FLOW_OK) {
|
||||||
GST_DEBUG_OBJECT (mux, "flow: %s", gst_flow_get_name (ret));
|
GST_DEBUG_OBJECT (mux, "flow: %s", gst_flow_get_name (ret));
|
||||||
gst_buffer_unref (buffer);
|
gst_buffer_unref (buffer);
|
||||||
|
@ -265,6 +271,13 @@ gst_tag_lib_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
gst_buffer_set_caps (buffer, GST_PAD_CAPS (mux->srcpad));
|
gst_buffer_set_caps (buffer, GST_PAD_CAPS (mux->srcpad));
|
||||||
return gst_pad_push (mux->srcpad, buffer);
|
return gst_pad_push (mux->srcpad, buffer);
|
||||||
|
|
||||||
|
/* ERRORS */
|
||||||
|
no_tag_buffer:
|
||||||
|
{
|
||||||
|
GST_ELEMENT_ERROR (mux, LIBRARY, ENCODE, (NULL), (NULL));
|
||||||
|
return GST_FLOW_ERROR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue