mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
gui/upnpbrowser.cpp: avoid crash, if TotalMatches is wrong;
try to fix ogg mime type, add audio/x-wav for wav
Origin commit data
------------------
Commit: d602f6b1d9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-05-21 (Wed, 21 May 2014)
This commit is contained in:
@@ -59,8 +59,11 @@ struct UPnPEntry
|
||||
std::string album;
|
||||
std::string albumArtURI;
|
||||
std::string children;
|
||||
std::string proto;
|
||||
std::string mime;
|
||||
std::vector<UPnPResource> resources;
|
||||
int preferred;
|
||||
int type;
|
||||
};
|
||||
|
||||
class CUpnpBrowserGui : public CMenuTarget
|
||||
@@ -116,12 +119,12 @@ class CUpnpBrowserGui : public CMenuTarget
|
||||
bool selectItem(std::string);
|
||||
void paintItems(std::vector<UPnPEntry> *entry, unsigned int selected, unsigned int max, unsigned int offset);
|
||||
void paintItem (std::vector<UPnPEntry> *entry, unsigned int pos, unsigned int selected);
|
||||
void paintItemInfo(std::vector<UPnPEntry> *entry, unsigned int selected);
|
||||
void paintDetails(std::vector<UPnPEntry> *entry, unsigned int index, bool use_playing = false);
|
||||
void paintItemInfo(UPnPEntry *entry);
|
||||
void paintDetails(UPnPEntry *entry, bool use_playing = false);
|
||||
void paintItem2DetailsLine (int pos);
|
||||
|
||||
void updateTimes(const bool force = false);
|
||||
void playAudio(std::string name, std::string mime);
|
||||
void playAudio(std::string name, int type);
|
||||
void showPicture(std::string name);
|
||||
void playVideo(std::string name, std::string url);
|
||||
};
|
||||
|
Reference in New Issue
Block a user