[rygel] media-export: Correct condition for (us)setting duration
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Correct condition for (us)setting duration
- Date: Fri, 23 Jul 2010 17:05:06 +0000 (UTC)
commit 2fd0e2669de5f6f8834fb9de9dbfc7e88ae4d19e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Jul 23 20:01:08 2010 +0300
media-export: Correct condition for (us)setting duration
Thanks to Arun Raghavan for pointing this out.
.../media-export/rygel-media-export-item.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index ede7b53..078f2b0 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -206,9 +206,9 @@ public class Rygel.MediaExport.Item : Rygel.MediaItem {
base (id, parent, title, upnp_class);
if (dlna_info.info.duration > -1) {
- this.duration = -1;
- } else {
this.duration = dlna_info.info.duration / Gst.SECOND;
+ } else {
+ this.duration = -1;
}
if (dlna_info.info.tags != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]