summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2013-06-16 19:10:18 -0400
committerThibault Saunier <thibault.saunier@collabora.com>2013-06-23 16:33:33 -0400
commit6c7b28161ca6da4c088a44eaa03fe66980f17e9c (patch)
treec490eaa7657ae6ee52d5ba8b80087bc8d027931b /tools
parent90f4e571ad5dab40883c2a70c7eb0bd5dd45ab75 (diff)
ges-launch: Remove xptv formatter related code
It is not usefull anymore
Diffstat (limited to 'tools')
-rw-r--r--tools/ges-launch.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/ges-launch.c b/tools/ges-launch.c
index 7c5df56..924e22c 100644
--- a/tools/ges-launch.c
+++ b/tools/ges-launch.c
@@ -34,8 +34,6 @@ static guint repeat = 0;
static GESTimelinePipeline *pipeline = NULL;
static gboolean seenerrors = FALSE;
-void load_project (gchar * uri);
-
static gchar *
ensure_uri (gchar * location)
{
@@ -383,31 +381,6 @@ print_pattern_list (void)
print_enum (GES_VIDEO_TEST_PATTERN_TYPE);
}
-void
-load_project (gchar * uri)
-{
- GESFormatter *formatter;
- GESTimeline *timeline;
- GMainLoop *mainloop;
- GESTimelinePipeline *pipeline;
- GstBus *bus;
-
- formatter = GES_FORMATTER (ges_pitivi_formatter_new ());
- timeline = ges_timeline_new ();
- pipeline = ges_timeline_pipeline_new ();
- bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
- mainloop = g_main_loop_new (NULL, FALSE);
-
- ges_timeline_pipeline_add_timeline (pipeline, timeline);
- ges_formatter_load_from_uri (formatter, timeline, uri, NULL);
- ges_timeline_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW_VIDEO);
-
- gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
- gst_bus_add_signal_watch (bus);
- g_signal_connect (bus, "message", G_CALLBACK (bus_message_cb), mainloop);
- g_main_loop_run (mainloop);
-}
-
int
main (int argc, gchar ** argv)
{
@@ -428,7 +401,6 @@ main (int argc, gchar ** argv)
static gboolean verbose = FALSE;
gchar *save_path = NULL;
gchar *load_path = NULL;
- gchar *project_path = NULL;
GOptionEntry options[] = {
{"thumbnail", 'm', 0.0, G_OPTION_ARG_DOUBLE, &thumbinterval,
"Take thumbnails every n seconds (saved in current directory)", "N"},
@@ -464,8 +436,6 @@ main (int argc, gchar ** argv)
"Output status information and property notifications", NULL},
{"exclude", 'X', 0, G_OPTION_ARG_NONE, &exclude_args,
"Do not output status information of TYPE", "TYPE1,TYPE2,..."},
- {"load-xptv", 'y', 0, G_OPTION_ARG_STRING, &project_path,
- "Load xptv project from file for previewing", "<path>"},
{NULL}
};
GOptionContext *ctx;
@@ -514,10 +484,6 @@ main (int argc, gchar ** argv)
exit (0);
}
- if (project_path) {
- load_project (project_path);
- exit (0);
- }
if (((!load_path && (argc < 4))) || (outputuri && (!render && !smartrender))) {
g_printf ("%s", g_option_context_get_help (ctx, TRUE, NULL));
g_option_context_free (ctx);