[rygel] media-export: Duration is a guint64
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Duration is a guint64
- Date: Wed, 21 Jul 2010 19:24:25 +0000 (UTC)
commit 3a9243ad7c46b7ee19bc0775a3af15a3008f54f9
Author: Arun Raghavan <arun raghavan collabora co uk>
Date: Fri Jun 11 14:27:25 2010 +0530
media-export: Duration is a guint64
create_from_taglist() was using int64 for duration which causes
subsequent uses as a guint64 (which is what Gst.ClockTime is) to fail.
.../media-export/rygel-media-export-item.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index 017cdd3..8c341ec 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -52,9 +52,9 @@ public class Rygel.MediaExport.MediaExportItem : Rygel.MediaItem {
// if it has width and height and a duration, assume
// it is a video (to capture the MPEG TS without audio
// case)
- int64 duration;
- if (tag_list.get_int64 (TAG_DURATION,
- out duration)) {
+ uint64 duration;
+ if (tag_list.get_uint64 (TAG_DURATION,
+ out duration)) {
class_guessed = Rygel.MediaItem.VIDEO_CLASS;
} else {
string content_type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]