rpicamsrc: More conversion to GStreamer logging

This commit is contained in:
Jan Schmidt 2015-03-06 01:27:44 +11:00 committed by Tim-Philipp Müller
parent 37028010f1
commit 52ae74f9ce
2 changed files with 14 additions and 12 deletions

View file

@ -1096,8 +1096,7 @@ raspi_capture_set_format_and_start(RASPIVID_STATE *state)
{ {
config->fps_n = 0; config->fps_n = 0;
config->fps_d = 1; config->fps_d = 1;
if (config->verbose) GST_INFO ("Enabling dynamic frame rate to fulfil shutter speed requirement");
fprintf(stderr, "Enable dynamic frame rate to fulfil shutter speed requirement\n");
} }
} }

View file

@ -59,6 +59,9 @@ GST_DEBUG_CATEGORY_EXTERN (gst_rpi_cam_src_debug);
#undef fprintf #undef fprintf
#define fprintf(f,...) GST_LOG(__VA_ARGS__) #define fprintf(f,...) GST_LOG(__VA_ARGS__)
#undef vcos_log_error
#define vcos_log_error GST_ERROR
G_BEGIN_DECLS G_BEGIN_DECLS
/** Structure containing all state information for the current run /** Structure containing all state information for the current run