Fix to make sure mediaserver properties are set to
authorbrianjjones <brian.j.jones@intel.com>
Thu, 26 Jun 2014 20:40:52 +0000 (13:40 -0700)
committerbrianjjones <brian.j.jones@intel.com>
Thu, 26 Jun 2014 20:40:52 +0000 (13:40 -0700)
the correct value.

    BUG=XWALK-2015

mediaserver/mediaserver_api.js

index b3eb91a..d39f07a 100644 (file)
@@ -362,9 +362,9 @@ function MediaItem(obj) {
   _addConstProperty(this, 'height', obj.height);
   _addConstProperty(this, 'duration', obj.duration);
   _addConstProperty(this, 'audioSampleRate', obj.audioSampleRate);
-  _addConstProperty(this, 'collection', obj.width);
-  _addConstProperty(this, 'author', obj.width);
-  _addConstProperty(this, 'category', obj.width);
-  _addConstProperty(this, 'trackNumber', obj.width);
+  _addConstProperty(this, 'collection', obj.collection);
+  _addConstProperty(this, 'author', obj.author);
+  _addConstProperty(this, 'category', obj.category);
+  _addConstProperty(this, 'trackNumber', obj.trackNumber);
 }
 derive(MediaItem, MediaObject);