Skip to content

Commit 8e18238

Browse files
committed
修改 Directory播放默认按文件名排序
1 parent 9091d10 commit 8e18238

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/player/ArrayMediaInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace mango
115115
else if(end->name_key ==NULL)
116116
ret = 1;
117117
else
118-
ret = strcmp(first->title_key,end->title_key);
118+
ret = strcmp(first->name_key,end->name_key);
119119
}
120120
//log_i("ArrayMediaInfo::compare ret = %d",ret);
121121
return ret;

apps/player/mediaView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ namespace mango
878878
ptr += sprintf(ptr," where path like '%s/%%' and not path like '%s/%%/%%' ",sqlParent,sqlParent);
879879
//ptr += sprintf(ptr," where path like '%s/%%'",sqlParent);
880880
count = gmediaprovider.queryMusicArray(where,&arrayInfo);
881-
arrayInfo.sort();
881+
arrayInfo.sort(2);
882882
mPlayinglist->addArrayItem(arrayInfo);
883883
}
884884
mPlayinglist->playMediaInfo(pinfo->getMediaInfo(0));

0 commit comments

Comments
 (0)