GstEncodingProfile *prof = NULL;
if (!opts->format) {
GESProject *proj =
- GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->
- priv->timeline)));
+ GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->priv->
+ timeline)));
const GList *profiles = ges_project_list_encoding_profiles (proj);
if (profiles) {
}
if (!prof) {
- warn ("No format specified and couldn't find one from output file extension, " "falling back to theora+vorbis in ogg.");
+ ges_warn
+ ("No format specified and couldn't find one from output file extension, "
+ "falling back to theora+vorbis in ogg.");
g_free (opts->format);
opts->format =
}
if (!prof) {
- printerr ("Could not find any encoding format for %s\n", opts->format);
+ ges_printerr ("Could not find any encoding format for %s\n",
+ opts->format);
return FALSE;
}
_project_loading_error_cb (GESProject * project, GESTimeline * timeline,
GError * error, GESLauncher * self)
{
- printerr ("Error loading timeline: '%s'\n", error->message);
+ ges_printerr ("Error loading timeline: '%s'\n", error->message);
self->priv->seenerrors = TRUE;
g_application_quit (G_APPLICATION (self));
_error_loading_asset_cb (GESProject * project, GError * error,
const gchar * failed_id, GType extractable_type, GESLauncher * self)
{
- printerr ("Error loading asset %s: %s\n", failed_id, error->message);
+ ges_printerr ("Error loading asset %s: %s\n", failed_id, error->message);
self->priv->seenerrors = TRUE;
g_application_quit (G_APPLICATION (self));
gst_object_unref (project);
if (error) {
- printerr ("\nERROR: Could not create timeline because: %s\n\n",
+ ges_printerr ("\nERROR: Could not create timeline because: %s\n\n",
error->message);
g_error_free (error);
return FALSE;
gst_message_parse_error (message, &err, &dbg_info);
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (self->priv->pipeline),
GST_DEBUG_GRAPH_SHOW_ALL, "ges-launch-error");
- printerr ("ERROR from element %s: %s\n", GST_OBJECT_NAME (message->src),
- err->message);
- printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
+ ges_printerr ("ERROR from element %s: %s\n",
+ GST_OBJECT_NAME (message->src), err->message);
+ ges_printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
g_clear_error (&err);
g_free (dbg_info);
self->priv->seenerrors = TRUE;
}
case GST_MESSAGE_EOS:
if (!self->priv->parsed_options.ignore_eos) {
- ok ("\nDone\n");
+ ges_ok ("\nDone\n");
g_application_quit (G_APPLICATION (self));
}
break;
if (opts->embed_nesteds) {
GList *tmp, *assets;
GESProject *proj =
- GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->
- priv->timeline)));
+ GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->priv->
+ timeline)));
assets = ges_project_list_assets (proj, GES_TYPE_URI_CLIP);
for (tmp = assets; tmp; tmp = tmp->next) {
}
if (!_timeline_set_user_options (self, self->priv->timeline, NULL)) {
- printerr ("Could not properly set tracks\n");
+ ges_printerr ("Could not properly set tracks\n");
return FALSE;
}
gst_init (&argc, arguments);
if (!ges_launcher_parse_options (self, arguments, &argc, ctx, &error)) {
gst_init (NULL, NULL);
- printerr ("Error initializing: %s\n", error->message);
+ ges_printerr ("Error initializing: %s\n", error->message);
g_option_context_free (ctx);
g_error_free (error);
*exit_status = 1;
/* Initialize the GStreamer Editing Services */
if (!ges_init ()) {
- printerr ("Error initializing GES\n");
+ ges_printerr ("Error initializing GES\n");
goto done;
}
}
void
-print (GstDebugColorFlags c, gboolean err, gboolean nline,
+ges_print (GstDebugColorFlags c, gboolean err, gboolean nline,
const gchar * format, va_list var_args)
{
GString *str = g_string_new (NULL);
}
void
-ok (const gchar * format, ...)
+ges_ok (const gchar * format, ...)
{
va_list var_args;
va_start (var_args, format);
- print (GST_DEBUG_FG_GREEN, FALSE, TRUE, format, var_args);
+ ges_print (GST_DEBUG_FG_GREEN, FALSE, TRUE, format, var_args);
va_end (var_args);
}
void
-warn (const gchar * format, ...)
+ges_warn (const gchar * format, ...)
{
va_list var_args;
va_start (var_args, format);
- print (GST_DEBUG_FG_YELLOW, TRUE, TRUE, format, var_args);
+ ges_print (GST_DEBUG_FG_YELLOW, TRUE, TRUE, format, var_args);
va_end (var_args);
}
void
-printerr (const gchar * format, ...)
+ges_printerr (const gchar * format, ...)
{
va_list var_args;
va_start (var_args, format);
- print (GST_DEBUG_FG_RED, TRUE, TRUE, format, var_args);
+ ges_print (GST_DEBUG_FG_RED, TRUE, TRUE, format, var_args);
va_end (var_args);
}
GstEncodingProfile * parse_encoding_profile (const gchar * format);
void print_enum (GType enum_type);
-void print (GstDebugColorFlags c, gboolean err, gboolean nline, const gchar * format, va_list var_args);
-void ok (const gchar * format, ...);
-void warn (const gchar * format, ...);
-void printerr (const gchar * format, ...);
+void ges_print (GstDebugColorFlags c, gboolean err, gboolean nline, const gchar * format, va_list var_args);
+void ges_ok (const gchar * format, ...);
+void ges_warn (const gchar * format, ...);
+void ges_printerr (const gchar * format, ...);
gchar * get_file_extension (gchar * uri);
void describe_encoding_profile (GstEncodingProfile *profile);
-void print_timeline(GESTimeline *timeline);
\ No newline at end of file
+void print_timeline(GESTimeline *timeline);