mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-12 01:05:47 +00:00
formatter: Rework the _save_to_uri method to give more debug information
This commit is contained in:
parent
f30e33d489
commit
4ab430877f
1 changed files with 15 additions and 3 deletions
|
@ -294,14 +294,26 @@ gboolean
|
||||||
ges_formatter_save_to_uri (GESFormatter * formatter, GESTimeline *
|
ges_formatter_save_to_uri (GESFormatter * formatter, GESTimeline *
|
||||||
timeline, const gchar * uri, gboolean overwrite, GError ** error)
|
timeline, const gchar * uri, gboolean overwrite, GError ** error)
|
||||||
{
|
{
|
||||||
|
GError *lerr = NULL;
|
||||||
|
gboolean ret = FALSE;
|
||||||
GESFormatterClass *klass = GES_FORMATTER_GET_CLASS (formatter);
|
GESFormatterClass *klass = GES_FORMATTER_GET_CLASS (formatter);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (formatter, "Saving %" GST_PTR_FORMAT " to %s",
|
||||||
|
timeline, uri);
|
||||||
if (klass->save_to_uri)
|
if (klass->save_to_uri)
|
||||||
return klass->save_to_uri (formatter, timeline, uri, overwrite, error);
|
ret = klass->save_to_uri (formatter, timeline, uri, overwrite, &lerr);
|
||||||
|
else
|
||||||
|
GST_ERROR_OBJECT (formatter, "save_to_uri not implemented!");
|
||||||
|
|
||||||
GST_ERROR ("not implemented!");
|
if (lerr) {
|
||||||
|
GST_WARNING_OBJECT (formatter, "%" GST_PTR_FORMAT
|
||||||
|
" not saved to %s error: %s", timeline, uri, lerr->message);
|
||||||
|
g_propagate_error (error, lerr);
|
||||||
|
} else
|
||||||
|
GST_INFO_OBJECT (formatter, "%" GST_PTR_FORMAT
|
||||||
|
" saved to %s", timeline, uri);
|
||||||
|
|
||||||
return FALSE;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue