[gstreamermm] generate_plugin_gmmproc_file: Minor improvements.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gstreamermm] generate_plugin_gmmproc_file: Minor improvements.
- Date: Mon, 3 Aug 2009 10:07:27 +0000 (UTC)
commit 47927e5d5f8309f4b9fb21231c946d173fc94e76
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Aug 3 12:07:17 2009 +0200
generate_plugin_gmmproc_file: Minor improvements.
* tools/extra_defs_gen/generate_plugin_gmmproc_file.cc:
Output a warning to stdcerr if the element type is not recognized, to help
people just playing with this on the command line.
Add a note to the .hg that the file is generated by this tool, to help people
who might try to edit the generated file.
ChangeLog | 10 ++++++++++
.../extra_defs_gen/generate_plugin_gmmproc_file.cc | 5 ++++-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 192a5d4..497cfd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-08-03 Murray Cumming <murrayc murrayc com>
+
+ generate_plugin_gmmproc_file: Minor improvements.
+
+ * tools/extra_defs_gen/generate_plugin_gmmproc_file.cc:
+ Output a warning to stdcerr if the element type is not recognized, to help
+ people just playing with this on the command line.
+ Add a note to the .hg that the file is generated by this tool, to help people
+ who might try to edit the generated file.
+
2009-08-02 José Alburquerque <jaalburqu svn gnome org>
Added TODO in typefind.hg.
diff --git a/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc b/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
index 3a8d51d..0b17c5c 100644
--- a/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
+++ b/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
@@ -519,6 +519,7 @@ void generate_hg_file(const Glib::ustring& includeMacroCalls,
const Glib::ustring& propertyWrapStatements,
const Glib::ustring& signalWrapStatements)
{
+ std::cout << "// Generated by run_generate_plugin_gmmproc_file. Don't edit this file." << std::endl << std::endl;
std::cout << "include(plugingen_base.m4)dnl" << std::endl;
std::cout << "changecom()dnl" << std::endl;
std::cout << "#include <" << parentInclude << "/" <<
@@ -853,6 +854,8 @@ int main(int argc, char* argv[])
}
else
{
+ std::cerr << "Unrecognized Gstreamer element type." << std::endl;
+
if(confirmExistence)
return -1;
@@ -861,7 +864,7 @@ int main(int argc, char* argv[])
std::cout << "_DEFS(" << target << "," << defsFile << ")" <<
std::endl << std::endl;
- std::cout << "// The build system does not have a plugin named " <<
+ std::cout << "// The build system does not know of a gstreamer plugin named " <<
argv[1] << "." << std::endl;
std::cout << "// A wrapper class for it was not generated." <<
std::endl;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]