[gnac/devel] Retrieve and display video codec
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Retrieve and display video codec
- Date: Sat, 10 Jul 2010 20:44:11 +0000 (UTC)
commit bcfd73e4e41ba578541ce6504dbdf2f1269fc1fc
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date: Sat Jul 10 21:43:56 2010 +0100
Retrieve and display video codec
.gitignore | 1 +
libgnac/libgnac-metadata-tags.h | 4 ++++
src/gnac-properties.c | 5 ++++-
3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b5786bf..17f87f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
".guess
*.m4
*~
+*.bak
*.swp
Makefile
compile
diff --git a/libgnac/libgnac-metadata-tags.h b/libgnac/libgnac-metadata-tags.h
index aed1d33..a6e6194 100644
--- a/libgnac/libgnac-metadata-tags.h
+++ b/libgnac/libgnac-metadata-tags.h
@@ -54,6 +54,8 @@ typedef GHashTable LibgnacTags;
(g_str_equal((tag), GST_TAG_ARTIST))
#define LIBGNAC_METADATA_TAG_IS_AUDIO_CODEC(tag) \
(g_str_equal((tag), GST_TAG_AUDIO_CODEC))
+#define LIBGNAC_METADATA_TAG_IS_VIDEO_CODEC(tag) \
+ (g_str_equal((tag), GST_TAG_VIDEO_CODEC))
#define LIBGNAC_METADATA_TAG_IS_BITRATE(tag) \
(g_str_equal((tag), GST_TAG_BITRATE))
#define LIBGNAC_METADATA_TAG_IS_CHANNELS(tag) \
@@ -109,6 +111,8 @@ typedef GHashTable LibgnacTags;
(g_hash_table_lookup((GHashTable*)(tags), GST_TAG_ARTIST))
#define LIBGNAC_METADATA_TAG_AUDIO_CODEC(tags) \
(g_hash_table_lookup((GHashTable*)(tags), GST_TAG_AUDIO_CODEC))
+#define LIBGNAC_METADATA_TAG_VIDEO_CODEC(tags) \
+ (g_hash_table_lookup((GHashTable*)(tags), GST_TAG_VIDEO_CODEC))
#define LIBGNAC_METADATA_TAG_BITRATE(tags) \
(g_hash_table_lookup((GHashTable*)(tags), GST_TAG_BITRATE))
#define LIBGNAC_METADATA_TAG_CHANNELS(tags) \
diff --git a/src/gnac-properties.c b/src/gnac-properties.c
index 7d73801..b001a6e 100644
--- a/src/gnac-properties.c
+++ b/src/gnac-properties.c
@@ -93,6 +93,7 @@ static const gchar *displayed_properties[] = {
GNAC_TAG_MODE,
GNAC_TAG_RATE,
GST_TAG_AUDIO_CODEC,
+ GST_TAG_VIDEO_CODEC,
GST_TAG_BITRATE,
GST_TAG_TRACK_GAIN,
GST_TAG_TRACK_PEAK,
@@ -109,7 +110,8 @@ static const gchar *nice_properties[] = {
N_("Mode"),
/* Translators: sample rate */
N_("Rate"),
- N_("Codec"),
+ N_("Audio codec"),
+ N_("Video codec"),
N_("Bitrate"),
N_("Track gain"),
N_("Track peak"),
@@ -398,6 +400,7 @@ gnac_properties_get_property_from_value(const gchar *name,
if (LIBGNAC_METADATA_TAG_IS_FILENAME(name) ||
LIBGNAC_METADATA_TAG_IS_LOCATION(name) ||
LIBGNAC_METADATA_TAG_IS_AUDIO_CODEC(name) ||
+ LIBGNAC_METADATA_TAG_IS_VIDEO_CODEC(name) ||
LIBGNAC_METADATA_TAG_IS_MODE(name))
{
const gchar *str = g_value_get_string(value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]