player: fix potential runtime exception when returning titles and minor code optimization
player: fix potential runtime exception when returning titles and minor code optimization

larrytin/VLCKit,programming086/VLCKit,waterskier2007/VLCKit,programming086/VLCKit,hpsoar/VLCKit,simon1984/test,CollabraMusic/VLCKit,simon1984/test,CollabraMusic/VLCKit,siuying/VLCKit,larrytin/VLCKit,siuying/VLCKit,kamcord/VLCKit,waterskier2007/VLCKit,kamcord/VLCKit,waterskier2007/VLCKit,kamcord/VLCKit,strukturag/VLCKit,strukturag/VLCKit,simon1984/test,siuying/VLCKit,hpsoar/VLCKit,CollabraMusic/VLCKit