~ubuntu-branches/ubuntu/trusty/rygel/trusty

« back to all changes in this revision

Viewing changes to src/plugins/media-export/rygel-media-export-item.vala

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2011-12-16 15:21:25 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111216152125-qgn31dkfmhouhrf0
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
                                    mime,
84
84
                                    size,
85
85
                                    mtime);
86
 
        } else if (audio_streams != null && video_streams != null) {
 
86
        } else if (video_streams != null) {
87
87
            item = new VideoItem (id, parent, "");
 
88
 
 
89
            var audio_info = null as DiscovererAudioInfo;
 
90
            if (audio_streams != null) {
 
91
                audio_info = audio_streams.data;
 
92
            }
 
93
 
88
94
            return fill_video_item (item as VideoItem,
89
95
                                    file,
90
96
                                    dlna_info,
91
97
                                    video_streams.data,
92
 
                                    audio_streams.data,
 
98
                                    audio_info,
93
99
                                    mime,
94
100
                                    size,
95
101
                                    mtime);
111
117
                                         DLNAInformation      dlna_info,
112
118
                                         DiscovererAudioInfo? audio_info) {
113
119
        if (dlna_info.info.get_duration () > 0) {
114
 
            item.duration = dlna_info.info.get_duration () / Gst.SECOND;
 
120
            item.duration = (long) (dlna_info.info.get_duration () / Gst.SECOND);
115
121
        } else {
116
122
            item.duration = -1;
117
123
        }