camerabin: examples: Renaming camerabin2 to camerabin

This commit is contained in:
Thiago Santos 2012-05-01 13:00:16 -03:00
parent 89a20eb63e
commit bc1f812211
2 changed files with 14 additions and 14 deletions

View file

@ -179,7 +179,7 @@ on_formatComboBox_changed (GtkWidget * widget, gpointer data)
GtkWidget *dialog = GtkWidget *dialog =
gtk_message_dialog_new (GTK_WINDOW (ui_main_window), GTK_DIALOG_MODAL, gtk_message_dialog_new (GTK_WINDOW (ui_main_window), GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
"Could not initialize camerabin2 with the " "Could not initialize camerabin with the "
"selected format. Your system might not have the required plugins installed.\n" "selected format. Your system might not have the required plugins installed.\n"
"Please select another format."); "Please select another format.");
@ -298,7 +298,7 @@ main (int argc, char *argv[])
return 1; return 1;
} }
camera = gst_element_factory_make ("camerabin2", "camera"); camera = gst_element_factory_make ("camerabin", "camera");
bus = gst_pipeline_get_bus (GST_PIPELINE (camera)); bus = gst_pipeline_get_bus (GST_PIPELINE (camera));
gst_bus_add_watch (bus, bus_callback, NULL); gst_bus_add_watch (bus, bus_callback, NULL);
gst_bus_set_sync_handler (bus, bus_sync_callback, NULL); gst_bus_set_sync_handler (bus, bus_sync_callback, NULL);

View file

@ -81,8 +81,8 @@
startup time, change mode time, shot to save, shot to snapshot, startup time, change mode time, shot to save, shot to snapshot,
shot to shot, preview to precapture, shot to buffer. shot to shot, preview to precapture, shot to buffer.
e.g. 3.5,1.0,5.0,2.5,5.0,1.5,1.0 e.g. 3.5,1.0,5.0,2.5,5.0,1.5,1.0
* Startup time -> time it takes for camerabin2 to reach playing * Startup time -> time it takes for camerabin to reach playing
* Change mode time -> time it takes for camerabin2 to change to the selected * Change mode time -> time it takes for camerabin to change to the selected
mode in playing mode in playing
* Shot to save -> time it takes from start-capture to having the image saved * Shot to save -> time it takes from start-capture to having the image saved
to disk to disk
@ -218,7 +218,7 @@ static gchar *video_capture_caps_str = NULL;
static gchar *audio_capture_caps_str = NULL; static gchar *audio_capture_caps_str = NULL;
static gboolean performance_measure = FALSE; static gboolean performance_measure = FALSE;
static gchar *performance_targets_str = NULL; static gchar *performance_targets_str = NULL;
static gchar *camerabin2_flags = NULL; static gchar *camerabin_flags = NULL;
#define MODE_VIDEO 2 #define MODE_VIDEO 2
@ -577,7 +577,7 @@ load_encoding_profile (void)
gep_targetname); gep_targetname);
} else } else
GST_DEBUG GST_DEBUG
("Encoding profile not set, using camerabin2 default encoding profile"); ("Encoding profile not set, using camerabin default encoding profile");
return prof; return prof;
} }
@ -613,7 +613,7 @@ setup_pipeline_element (GstElement * element, const gchar * property_name,
} }
static void static void
set_camerabin2_caps_from_string (void) set_camerabin_caps_from_string (void)
{ {
GstCaps *caps = NULL; GstCaps *caps = NULL;
if (image_capture_caps_str != NULL) { if (image_capture_caps_str != NULL) {
@ -664,7 +664,7 @@ setup_pipeline (void)
initial_time = gst_util_get_timestamp (); initial_time = gst_util_get_timestamp ();
camerabin = gst_element_factory_make ("camerabin2", NULL); camerabin = gst_element_factory_make ("camerabin", NULL);
if (NULL == camerabin) { if (NULL == camerabin) {
g_warning ("can't create camerabin element\n"); g_warning ("can't create camerabin element\n");
goto error; goto error;
@ -677,9 +677,9 @@ setup_pipeline (void)
gst_bus_add_watch (bus, bus_callback, NULL); gst_bus_add_watch (bus, bus_callback, NULL);
gst_object_unref (bus); gst_object_unref (bus);
GST_INFO_OBJECT (camerabin, "camerabin2 created"); GST_INFO_OBJECT (camerabin, "camerabin created");
gst_util_set_object_arg (G_OBJECT (camerabin), "flags", camerabin2_flags); gst_util_set_object_arg (G_OBJECT (camerabin), "flags", camerabin_flags);
if (videosrc_name) { if (videosrc_name) {
GstElement *wrapper; GstElement *wrapper;
@ -731,7 +731,7 @@ setup_pipeline (void)
g_object_set (sink, "sync", TRUE, NULL); g_object_set (sink, "sync", TRUE, NULL);
} else { } else {
/* Get the inner viewfinder sink, this uses fixed names given /* Get the inner viewfinder sink, this uses fixed names given
* by default in camerabin2 */ * by default in camerabin */
sink = gst_bin_get_by_name (GST_BIN (camerabin), "vf-bin"); sink = gst_bin_get_by_name (GST_BIN (camerabin), "vf-bin");
g_assert (sink); g_assert (sink);
gst_object_unref (sink); gst_object_unref (sink);
@ -782,7 +782,7 @@ setup_pipeline (void)
} }
} }
set_camerabin2_caps_from_string (); set_camerabin_caps_from_string ();
/* change to the wrong mode if timestamping if performance mode is on so /* change to the wrong mode if timestamping if performance mode is on so
* we can change it back and measure the time after in playing */ * we can change it back and measure the time after in playing */
@ -1242,8 +1242,8 @@ main (int argc, char *argv[])
", shot to snapshot, shot to shot, preview to shot, shot to buffer. " ", shot to snapshot, shot to shot, preview to shot, shot to buffer. "
"e.g. 3.5,1.0,5.0,2.5,5.0,1.5,1.0", "e.g. 3.5,1.0,5.0,2.5,5.0,1.5,1.0",
NULL}, NULL},
{"flags", '\0', 0, G_OPTION_ARG_STRING, &camerabin2_flags, {"flags", '\0', 0, G_OPTION_ARG_STRING, &camerabin_flags,
"camerabin2 element flags (default = 0)", NULL}, "camerabin element flags (default = 0)", NULL},
{NULL} {NULL}
}; };