gnomemm r1754 - in gstreamermm/trunk: . gstreamer/gstreamermm gstreamer/src tests



Author: jaalburqu
Date: Mon Oct 27 20:40:34 2008
New Revision: 1754
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1754&view=rev

Log:
2008-10-27  Josà Alburquerque  <jaalburqu svn gnome org>

	* gstreamer/gstreamermm/taglist.h:
	* gstreamer/src/taglist.hg:
	* tests/test-taglist.cc: Moved GstTagList constants to new Gst::Tag
	namespace.
	* gstreamer/src/Makefile_list_of_hg.am_fragment: Marked TODO
	completed.

Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/gstreamer/gstreamermm/taglist.h
   gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
   gstreamermm/trunk/gstreamer/src/taglist.hg
   gstreamermm/trunk/tests/test-taglist.cc

Modified: gstreamermm/trunk/gstreamer/gstreamermm/taglist.h
==============================================================================
--- gstreamermm/trunk/gstreamer/gstreamermm/taglist.h	(original)
+++ gstreamermm/trunk/gstreamer/gstreamermm/taglist.h	Mon Oct 27 20:40:34 2008
@@ -106,23 +106,26 @@
 {
 
 
+namespace Tag
+{
+
 /** Commonly used title (string).
  * The title as it should be displayed, e.g. 'The Doll House'.
  */
-const Glib::ustring TAG_TITLE = GST_TAG_TITLE;
+const Glib::ustring TITLE = GST_TAG_TITLE;
 
 /** Commonly used title, as used for sorting (string).
  * The title as it should be sorted, e.g. 'Doll House, The'.
  *
  * Since 0.10.15.
  */
-const Glib::ustring TAG_TITLE_SORTNAME = GST_TAG_TITLE_SORTNAME;
+const Glib::ustring TITLE_SORTNAME = GST_TAG_TITLE_SORTNAME;
 
 /** Person(s) responsible for the recording (string).
  * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or 'The
  * Guitar Heroes'.
  */
-const Glib::ustring TAG_ARTIST = GST_TAG_ARTIST;
+const Glib::ustring ARTIST = GST_TAG_ARTIST;
 
 /** Person(s) responsible for the recording, as used for sorting (string).
  * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or 'Guitar
@@ -130,31 +133,31 @@
  *
  * Since 0.10.15.
  */
-const Glib::ustring TAG_ARTIST_SORTNAME = GST_TAG_ARTIST_SORTNAME;
+const Glib::ustring ARTIST_SORTNAME = GST_TAG_ARTIST_SORTNAME;
 
 /** Album containing this data (string).
  * The album name as it should be displayed, e.g. 'The Jazz Guitar'.
  */
-const Glib::ustring TAG_ALBUM = GST_TAG_ALBUM;
+const Glib::ustring ALBUM = GST_TAG_ALBUM;
 
 /** Album containing this data, as used for sorting (string).
  * The album name as it should be sorted, e.g. 'Jazz Guitar, The'.
  *
  * Since 0.10.15.
  */
-const Glib::ustring TAG_ALBUM_SORTNAME = GST_TAG_ALBUM_SORTNAME;
+const Glib::ustring ALBUM_SORTNAME = GST_TAG_ALBUM_SORTNAME;
 
 /** Date the data was created (GDate structure).
  */
-const Glib::ustring TAG_DATE = GST_TAG_DATE;
+const Glib::ustring DATE = GST_TAG_DATE;
 
 /** Genre this data belongs to (string).
  */
-const Glib::ustring TAG_GENRE = GST_TAG_GENRE;
+const Glib::ustring GENRE = GST_TAG_GENRE;
 
 /** Free text commenting the data (string).
  */
-const Glib::ustring TAG_COMMENT = GST_TAG_COMMENT;
+const Glib::ustring COMMENT = GST_TAG_COMMENT;
 
 /** Key/value text commenting the data (string).
  * Must be in the form of 'key=comment' or 'key[lc]=comment' where 'lc' is an
@@ -165,161 +168,163 @@
  *
  * Since 0.10.10.
  */
-const Glib::ustring TAG_EXTENDED_COMMENT = GST_TAG_EXTENDED_COMMENT;
+const Glib::ustring EXTENDED_COMMENT = GST_TAG_EXTENDED_COMMENT;
 
 /** Track number inside a collection (unsigned integer).
  */
-const Glib::ustring TAG_TRACK_NUMBER = GST_TAG_TRACK_NUMBER;
+const Glib::ustring TRACK_NUMBER = GST_TAG_TRACK_NUMBER;
 
 /** Count of tracks inside collection this track belongs to (unsigned integer).
  */
-const Glib::ustring TAG_TRACK_COUNT = GST_TAG_TRACK_COUNT;
+const Glib::ustring TRACK_COUNT = GST_TAG_TRACK_COUNT;
 
 /** Disc number inside a collection (unsigned integer).
  */
-const Glib::ustring TAG_ALBUM_VOLUME_NUMBER = GST_TAG_ALBUM_VOLUME_NUMBER;
+const Glib::ustring ALBUM_VOLUME_NUMBER = GST_TAG_ALBUM_VOLUME_NUMBER;
 
 /** Count of discs inside collection this disc belongs to (unsigned integer).
  */
-const Glib::ustring TAG_ALBUM_VOLUME_COUNT = GST_TAG_ALBUM_VOLUME_COUNT;
+const Glib::ustring ALBUM_VOLUME_COUNT = GST_TAG_ALBUM_VOLUME_COUNT;
 
 /** Original location of file as a URI (string).
  */
-const Glib::ustring TAG_LOCATION = GST_TAG_LOCATION;
+const Glib::ustring LOCATION = GST_TAG_LOCATION;
 
 /** Short text describing the content of the data (string).
  */
-const Glib::ustring TAG_DESCRIPTION = GST_TAG_DESCRIPTION;
+const Glib::ustring DESCRIPTION = GST_TAG_DESCRIPTION;
 
 /** Version of this data (string).
  */
-const Glib::ustring TAG_VERSION = GST_TAG_VERSION;
+const Glib::ustring VERSION = GST_TAG_VERSION;
 
 /** International Standard Recording Code - see http://www.ifpi.org/isrc/
  * (string).
  */
-const Glib::ustring TAG_ISRC = GST_TAG_ISRC;
+const Glib::ustring ISRC = GST_TAG_ISRC;
 
 /** Organization (string).
  */
-const Glib::ustring TAG_ORGANIZATION = GST_TAG_ORGANIZATION;
+const Glib::ustring ORGANIZATION = GST_TAG_ORGANIZATION;
 
 /** Copyright notice of the data (string).
  */
-const Glib::ustring TAG_COPYRIGHT = GST_TAG_COPYRIGHT;
+const Glib::ustring COPYRIGHT = GST_TAG_COPYRIGHT;
 
 /** URI to location where copyright details can be found (string).
  * Since 0.10.14.
  */
-const Glib::ustring TAG_COPYRIGHT_URI = GST_TAG_COPYRIGHT_URI;
+const Glib::ustring COPYRIGHT_URI = GST_TAG_COPYRIGHT_URI;
 
 /** Person(s) who composed the recording (string).
  * Since 0.10.15.
  */
-const Glib::ustring TAG_COMPOSER = GST_TAG_COMPOSER;
+const Glib::ustring COMPOSER = GST_TAG_COMPOSER;
 
 /** Contact information (string).
  */
-const Glib::ustring TAG_CONTACT = GST_TAG_CONTACT;
+const Glib::ustring CONTACT = GST_TAG_CONTACT;
 
 /** License of data (string).
  */
-const Glib::ustring TAG_LICENSE = GST_TAG_LICENSE;
+const Glib::ustring LICENSE = GST_TAG_LICENSE;
 
 /** URI to location where license details can be found (string).
  * Since 0.10.14.
  */
-const Glib::ustring TAG_LICENSE_URI = GST_TAG_LICENSE_URI;
+const Glib::ustring LICENSE_URI = GST_TAG_LICENSE_URI;
 
 /** Person(s) performing (string).
  */
-const Glib::ustring TAG_PERFORMER = GST_TAG_PERFORMER;
+const Glib::ustring PERFORMER = GST_TAG_PERFORMER;
 
 /** Length in GStreamer time units (nanoseconds) (unsigned 64-bit integer).
  */
-const Glib::ustring TAG_DURATION = GST_TAG_DURATION;
+const Glib::ustring DURATION = GST_TAG_DURATION;
 
 /** Codec the data is stored in (string).
  */
-const Glib::ustring TAG_CODEC = GST_TAG_CODEC;
+const Glib::ustring CODEC = GST_TAG_CODEC;
 
 /** Codec the video data is stored in (string).
  */
-const Glib::ustring TAG_VIDEO_CODEC = GST_TAG_VIDEO_CODEC;
+const Glib::ustring VIDEO_CODEC = GST_TAG_VIDEO_CODEC;
 
 /** Codec the audio data is stored in (string).
  */
-const Glib::ustring TAG_AUDIO_CODEC = GST_TAG_AUDIO_CODEC;
+const Glib::ustring AUDIO_CODEC = GST_TAG_AUDIO_CODEC;
 
 /** Exact or average bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_BITRATE = GST_TAG_BITRATE;
+const Glib::ustring BITRATE = GST_TAG_BITRATE;
 
 /** Nominal bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_NOMINAL_BITRATE = GST_TAG_NOMINAL_BITRATE;
+const Glib::ustring NOMINAL_BITRATE = GST_TAG_NOMINAL_BITRATE;
 
 /** Minimum bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_MINIMUM_BITRATE = GST_TAG_MINIMUM_BITRATE;
+const Glib::ustring MINIMUM_BITRATE = GST_TAG_MINIMUM_BITRATE;
 
 /** Maximum bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_MAXIMUM_BITRATE = GST_TAG_MAXIMUM_BITRATE;
+const Glib::ustring MAXIMUM_BITRATE = GST_TAG_MAXIMUM_BITRATE;
 
 /** Serial number of track (unsigned integer).
  */
-const Glib::ustring TAG_SERIAL = GST_TAG_SERIAL;
+const Glib::ustring SERIAL = GST_TAG_SERIAL;
 
 /** Encoder used to encode this stream (string).
  */
-const Glib::ustring TAG_ENCODER = GST_TAG_ENCODER;
+const Glib::ustring ENCODER = GST_TAG_ENCODER;
 
 /** Version of the encoder used to encode this stream (unsigned integer).
  */
-const Glib::ustring TAG_ENCODER_VERSION = GST_TAG_ENCODER_VERSION;
+const Glib::ustring ENCODER_VERSION = GST_TAG_ENCODER_VERSION;
 
 /** Track gain in db (double).
  */
-const Glib::ustring TAG_TRACK_GAIN = GST_TAG_TRACK_GAIN;
+const Glib::ustring TRACK_GAIN = GST_TAG_TRACK_GAIN;
 
 /** Peak of the track (double).
  */
-const Glib::ustring TAG_TRACK_PEAK = GST_TAG_TRACK_PEAK;
+const Glib::ustring TRACK_PEAK = GST_TAG_TRACK_PEAK;
 
 /** Album gain in db (double).
  */
-const Glib::ustring TAG_ALBUM_GAIN = GST_TAG_ALBUM_GAIN;
+const Glib::ustring ALBUM_GAIN = GST_TAG_ALBUM_GAIN;
 
 /** Peak of the album (double).
  */
-const Glib::ustring TAG_ALBUM_PEAK = GST_TAG_ALBUM_PEAK;
+const Glib::ustring ALBUM_PEAK = GST_TAG_ALBUM_PEAK;
 
 /** Reference level of track and album gain values (double).
  * Since 0.10.12.
  */
-const Glib::ustring TAG_REFERENCE_LEVEL = GST_TAG_REFERENCE_LEVEL;
+const Glib::ustring REFERENCE_LEVEL = GST_TAG_REFERENCE_LEVEL;
 
 /** Language code (ISO-639-1) (string) of the content.
  */
-const Glib::ustring TAG_LANGUAGE_CODE = GST_TAG_LANGUAGE_CODE;
+const Glib::ustring LANGUAGE_CODE = GST_TAG_LANGUAGE_CODE;
 
 /** Image (buffer) (buffer caps should specify the content type and preferably
  * also set "image-type" field as GstTagImageType).
  * Since 0.10.6 
  */
-const Glib::ustring TAG_IMAGE = GST_TAG_IMAGE;
+const Glib::ustring IMAGE = GST_TAG_IMAGE;
 
 /** Image that is meant for preview purposes, e.g. small icon-sized version
  * (buffer) (buffer caps should specify the content type).
  * Since 0.10.7.
  */
-const Glib::ustring TAG_PREVIEW_IMAGE = GST_TAG_PREVIEW_IMAGE;
+const Glib::ustring PREVIEW_IMAGE = GST_TAG_PREVIEW_IMAGE;
 
 /** Number of beats per minute in audio (double).
  * Since 0.10.12.
  */
-const Glib::ustring TAG_BEATS_PER_MINUTE = GST_TAG_BEATS_PER_MINUTE;
+const Glib::ustring BEATS_PER_MINUTE = GST_TAG_BEATS_PER_MINUTE;
+
+}
 
 /** A List of tags and values used to describe media metadata.
  * Taglists form part of media streams and describe the content of a stream in

Modified: gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment	(original)
+++ gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment	Mon Oct 27 20:40:34 2008
@@ -14,7 +14,6 @@
 	basesrc.hg basesink.hg basetransform.hg pushsrc.hg
 
 #TODO: Add ghostpad.hg when bug #539108 is fixed (and patch in bug is applied)
-#TODO: Add iterator.hg when it is implemented
 
 files_general_deprecated_hg =
 

Modified: gstreamermm/trunk/gstreamer/src/taglist.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/taglist.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/taglist.hg	Mon Oct 27 20:40:34 2008
@@ -31,23 +31,26 @@
 _WRAP_ENUM(TagMergeMode, GstTagMergeMode)
 _WRAP_ENUM(TagFlag, GstTagFlag)
 
+namespace Tag
+{
+
 /** Commonly used title (string).
  * The title as it should be displayed, e.g. 'The Doll House'.
  */
-const Glib::ustring TAG_TITLE = GST_TAG_TITLE;
+const Glib::ustring TITLE = GST_TAG_TITLE;
 
 /** Commonly used title, as used for sorting (string).
  * The title as it should be sorted, e.g. 'Doll House, The'.
  *
  * Since 0.10.15.
  */
-const Glib::ustring TAG_TITLE_SORTNAME = GST_TAG_TITLE_SORTNAME;
+const Glib::ustring TITLE_SORTNAME = GST_TAG_TITLE_SORTNAME;
 
 /** Person(s) responsible for the recording (string).
  * The artist name as it should be displayed, e.g. 'Jimi Hendrix' or 'The
  * Guitar Heroes'.
  */
-const Glib::ustring TAG_ARTIST = GST_TAG_ARTIST;
+const Glib::ustring ARTIST = GST_TAG_ARTIST;
 
 /** Person(s) responsible for the recording, as used for sorting (string).
  * The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or 'Guitar
@@ -55,31 +58,31 @@
  *
  * Since 0.10.15.
  */
-const Glib::ustring TAG_ARTIST_SORTNAME = GST_TAG_ARTIST_SORTNAME;
+const Glib::ustring ARTIST_SORTNAME = GST_TAG_ARTIST_SORTNAME;
 
 /** Album containing this data (string).
  * The album name as it should be displayed, e.g. 'The Jazz Guitar'.
  */
-const Glib::ustring TAG_ALBUM = GST_TAG_ALBUM;
+const Glib::ustring ALBUM = GST_TAG_ALBUM;
 
 /** Album containing this data, as used for sorting (string).
  * The album name as it should be sorted, e.g. 'Jazz Guitar, The'.
  *
  * Since 0.10.15.
  */
-const Glib::ustring TAG_ALBUM_SORTNAME = GST_TAG_ALBUM_SORTNAME;
+const Glib::ustring ALBUM_SORTNAME = GST_TAG_ALBUM_SORTNAME;
 
 /** Date the data was created (GDate structure).
  */
-const Glib::ustring TAG_DATE = GST_TAG_DATE;
+const Glib::ustring DATE = GST_TAG_DATE;
 
 /** Genre this data belongs to (string).
  */
-const Glib::ustring TAG_GENRE = GST_TAG_GENRE;
+const Glib::ustring GENRE = GST_TAG_GENRE;
 
 /** Free text commenting the data (string).
  */
-const Glib::ustring TAG_COMMENT = GST_TAG_COMMENT;
+const Glib::ustring COMMENT = GST_TAG_COMMENT;
 
 /** Key/value text commenting the data (string).
  * Must be in the form of 'key=comment' or 'key[lc]=comment' where 'lc' is an
@@ -90,161 +93,163 @@
  *
  * Since 0.10.10.
  */
-const Glib::ustring TAG_EXTENDED_COMMENT = GST_TAG_EXTENDED_COMMENT;
+const Glib::ustring EXTENDED_COMMENT = GST_TAG_EXTENDED_COMMENT;
 
 /** Track number inside a collection (unsigned integer).
  */
-const Glib::ustring TAG_TRACK_NUMBER = GST_TAG_TRACK_NUMBER;
+const Glib::ustring TRACK_NUMBER = GST_TAG_TRACK_NUMBER;
 
 /** Count of tracks inside collection this track belongs to (unsigned integer).
  */
-const Glib::ustring TAG_TRACK_COUNT = GST_TAG_TRACK_COUNT;
+const Glib::ustring TRACK_COUNT = GST_TAG_TRACK_COUNT;
 
 /** Disc number inside a collection (unsigned integer).
  */
-const Glib::ustring TAG_ALBUM_VOLUME_NUMBER = GST_TAG_ALBUM_VOLUME_NUMBER;
+const Glib::ustring ALBUM_VOLUME_NUMBER = GST_TAG_ALBUM_VOLUME_NUMBER;
 
 /** Count of discs inside collection this disc belongs to (unsigned integer).
  */
-const Glib::ustring TAG_ALBUM_VOLUME_COUNT = GST_TAG_ALBUM_VOLUME_COUNT;
+const Glib::ustring ALBUM_VOLUME_COUNT = GST_TAG_ALBUM_VOLUME_COUNT;
 
 /** Original location of file as a URI (string).
  */
-const Glib::ustring TAG_LOCATION = GST_TAG_LOCATION;
+const Glib::ustring LOCATION = GST_TAG_LOCATION;
 
 /** Short text describing the content of the data (string).
  */
-const Glib::ustring TAG_DESCRIPTION = GST_TAG_DESCRIPTION;
+const Glib::ustring DESCRIPTION = GST_TAG_DESCRIPTION;
 
 /** Version of this data (string).
  */
-const Glib::ustring TAG_VERSION = GST_TAG_VERSION;
+const Glib::ustring VERSION = GST_TAG_VERSION;
 
 /** International Standard Recording Code - see http://www.ifpi.org/isrc/
  * (string).
  */
-const Glib::ustring TAG_ISRC = GST_TAG_ISRC;
+const Glib::ustring ISRC = GST_TAG_ISRC;
 
 /** Organization (string).
  */
-const Glib::ustring TAG_ORGANIZATION = GST_TAG_ORGANIZATION;
+const Glib::ustring ORGANIZATION = GST_TAG_ORGANIZATION;
 
 /** Copyright notice of the data (string).
  */
-const Glib::ustring TAG_COPYRIGHT = GST_TAG_COPYRIGHT;
+const Glib::ustring COPYRIGHT = GST_TAG_COPYRIGHT;
 
 /** URI to location where copyright details can be found (string).
  * Since 0.10.14.
  */
-const Glib::ustring TAG_COPYRIGHT_URI = GST_TAG_COPYRIGHT_URI;
+const Glib::ustring COPYRIGHT_URI = GST_TAG_COPYRIGHT_URI;
 
 /** Person(s) who composed the recording (string).
  * Since 0.10.15.
  */
-const Glib::ustring TAG_COMPOSER = GST_TAG_COMPOSER;
+const Glib::ustring COMPOSER = GST_TAG_COMPOSER;
 
 /** Contact information (string).
  */
-const Glib::ustring TAG_CONTACT = GST_TAG_CONTACT;
+const Glib::ustring CONTACT = GST_TAG_CONTACT;
 
 /** License of data (string).
  */
-const Glib::ustring TAG_LICENSE = GST_TAG_LICENSE;
+const Glib::ustring LICENSE = GST_TAG_LICENSE;
 
 /** URI to location where license details can be found (string).
  * Since 0.10.14.
  */
-const Glib::ustring TAG_LICENSE_URI = GST_TAG_LICENSE_URI;
+const Glib::ustring LICENSE_URI = GST_TAG_LICENSE_URI;
 
 /** Person(s) performing (string).
  */
-const Glib::ustring TAG_PERFORMER = GST_TAG_PERFORMER;
+const Glib::ustring PERFORMER = GST_TAG_PERFORMER;
 
 /** Length in GStreamer time units (nanoseconds) (unsigned 64-bit integer).
  */
-const Glib::ustring TAG_DURATION = GST_TAG_DURATION;
+const Glib::ustring DURATION = GST_TAG_DURATION;
 
 /** Codec the data is stored in (string).
  */
-const Glib::ustring TAG_CODEC = GST_TAG_CODEC;
+const Glib::ustring CODEC = GST_TAG_CODEC;
 
 /** Codec the video data is stored in (string).
  */
-const Glib::ustring TAG_VIDEO_CODEC = GST_TAG_VIDEO_CODEC;
+const Glib::ustring VIDEO_CODEC = GST_TAG_VIDEO_CODEC;
 
 /** Codec the audio data is stored in (string).
  */
-const Glib::ustring TAG_AUDIO_CODEC = GST_TAG_AUDIO_CODEC;
+const Glib::ustring AUDIO_CODEC = GST_TAG_AUDIO_CODEC;
 
 /** Exact or average bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_BITRATE = GST_TAG_BITRATE;
+const Glib::ustring BITRATE = GST_TAG_BITRATE;
 
 /** Nominal bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_NOMINAL_BITRATE = GST_TAG_NOMINAL_BITRATE;
+const Glib::ustring NOMINAL_BITRATE = GST_TAG_NOMINAL_BITRATE;
 
 /** Minimum bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_MINIMUM_BITRATE = GST_TAG_MINIMUM_BITRATE;
+const Glib::ustring MINIMUM_BITRATE = GST_TAG_MINIMUM_BITRATE;
 
 /** Maximum bitrate in bits/s (unsigned integer).
  */
-const Glib::ustring TAG_MAXIMUM_BITRATE = GST_TAG_MAXIMUM_BITRATE;
+const Glib::ustring MAXIMUM_BITRATE = GST_TAG_MAXIMUM_BITRATE;
 
 /** Serial number of track (unsigned integer).
  */
-const Glib::ustring TAG_SERIAL = GST_TAG_SERIAL;
+const Glib::ustring SERIAL = GST_TAG_SERIAL;
 
 /** Encoder used to encode this stream (string).
  */
-const Glib::ustring TAG_ENCODER = GST_TAG_ENCODER;
+const Glib::ustring ENCODER = GST_TAG_ENCODER;
 
 /** Version of the encoder used to encode this stream (unsigned integer).
  */
-const Glib::ustring TAG_ENCODER_VERSION = GST_TAG_ENCODER_VERSION;
+const Glib::ustring ENCODER_VERSION = GST_TAG_ENCODER_VERSION;
 
 /** Track gain in db (double).
  */
-const Glib::ustring TAG_TRACK_GAIN = GST_TAG_TRACK_GAIN;
+const Glib::ustring TRACK_GAIN = GST_TAG_TRACK_GAIN;
 
 /** Peak of the track (double).
  */
-const Glib::ustring TAG_TRACK_PEAK = GST_TAG_TRACK_PEAK;
+const Glib::ustring TRACK_PEAK = GST_TAG_TRACK_PEAK;
 
 /** Album gain in db (double).
  */
-const Glib::ustring TAG_ALBUM_GAIN = GST_TAG_ALBUM_GAIN;
+const Glib::ustring ALBUM_GAIN = GST_TAG_ALBUM_GAIN;
 
 /** Peak of the album (double).
  */
-const Glib::ustring TAG_ALBUM_PEAK = GST_TAG_ALBUM_PEAK;
+const Glib::ustring ALBUM_PEAK = GST_TAG_ALBUM_PEAK;
 
 /** Reference level of track and album gain values (double).
  * Since 0.10.12.
  */
-const Glib::ustring TAG_REFERENCE_LEVEL = GST_TAG_REFERENCE_LEVEL;
+const Glib::ustring REFERENCE_LEVEL = GST_TAG_REFERENCE_LEVEL;
 
 /** Language code (ISO-639-1) (string) of the content.
  */
-const Glib::ustring TAG_LANGUAGE_CODE = GST_TAG_LANGUAGE_CODE;
+const Glib::ustring LANGUAGE_CODE = GST_TAG_LANGUAGE_CODE;
 
 /** Image (buffer) (buffer caps should specify the content type and preferably
  * also set "image-type" field as GstTagImageType).
  * Since 0.10.6 
  */
-const Glib::ustring TAG_IMAGE = GST_TAG_IMAGE;
+const Glib::ustring IMAGE = GST_TAG_IMAGE;
 
 /** Image that is meant for preview purposes, e.g. small icon-sized version
  * (buffer) (buffer caps should specify the content type).
  * Since 0.10.7.
  */
-const Glib::ustring TAG_PREVIEW_IMAGE = GST_TAG_PREVIEW_IMAGE;
+const Glib::ustring PREVIEW_IMAGE = GST_TAG_PREVIEW_IMAGE;
 
 /** Number of beats per minute in audio (double).
  * Since 0.10.12.
  */
-const Glib::ustring TAG_BEATS_PER_MINUTE = GST_TAG_BEATS_PER_MINUTE;
+const Glib::ustring BEATS_PER_MINUTE = GST_TAG_BEATS_PER_MINUTE;
+
+}
 
 /** A List of tags and values used to describe media metadata.
  * Taglists form part of media streams and describe the content of a stream in

Modified: gstreamermm/trunk/tests/test-taglist.cc
==============================================================================
--- gstreamermm/trunk/tests/test-taglist.cc	(original)
+++ gstreamermm/trunk/tests/test-taglist.cc	Mon Oct 27 20:40:34 2008
@@ -34,20 +34,20 @@
     exit(1);
   }
 
-  taglist.add(Gst::TAG_TITLE, "My Song");
-  taglist.add(Gst::TAG_ARTIST, "Artist");
-  taglist.add(Gst::TAG_BITRATE, (guint) 192);
+  taglist.add(Gst::Tag::TITLE, "My Song");
+  taglist.add(Gst::Tag::ARTIST, "Artist");
+  taglist.add(Gst::Tag::BITRATE, (guint) 192);
 
   Glib::ustring title;
-  if (taglist.get(Gst::TAG_TITLE, title))
+  if (taglist.get(Gst::Tag::TITLE, title))
     std::cout << "Tag title is '" << title << "'." << std::endl;
 
   Glib::ustring artist;
-  if (taglist.get(Gst::TAG_ARTIST, artist))
+  if (taglist.get(Gst::Tag::ARTIST, artist))
     std::cout << "Tag artist is '" << artist << "'." << std::endl;
 
   guint rate;
-  if (taglist.get(Gst::TAG_BITRATE, rate))
+  if (taglist.get(Gst::Tag::BITRATE, rate))
     std::cout << "Tag bit-rate is " << rate << "." << std::endl;
 
   return 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]