summaryrefslogtreecommitdiff
path: root/muggle-plugin/mg_content_interface.c
diff options
context:
space:
mode:
authorlvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b>2004-07-25 21:33:35 +0000
committerlvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b>2004-07-25 21:33:35 +0000
commit1f952ec1389596b7eb0bca748857e05f022d0bf1 (patch)
treeac74bb96e9a94029ea30c60006907e6d54bc42ed /muggle-plugin/mg_content_interface.c
parentca6927e1f7f66be3a80bf73dbf001e9d7233b493 (diff)
downloadvdr-plugin-muggle-1f952ec1389596b7eb0bca748857e05f022d0bf1.tar.gz
vdr-plugin-muggle-1f952ec1389596b7eb0bca748857e05f022d0bf1.tar.bz2
Removed bugs in finding track files and playlist indexing.
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@105 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/mg_content_interface.c')
-rwxr-xr-xmuggle-plugin/mg_content_interface.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/muggle-plugin/mg_content_interface.c b/muggle-plugin/mg_content_interface.c
index 437d8b5..c62bd2d 100755
--- a/muggle-plugin/mg_content_interface.c
+++ b/muggle-plugin/mg_content_interface.c
@@ -1,8 +1,8 @@
/*! \file mg_content_interface.c
* \brief Data Objects for content (e.g. mp3 files, movies) for the vdr muggle plugin
*
- * \version $Revision: 1.5 $
- * \date $Date: 2004/05/28 15:29:18 $
+ * \version $Revision: 1.6 $
+ * \date $Date: 2004/07/25 21:33:35 $
* \author Ralf Klueber, Lars von Wedel, Andreas Kellner
* \author Responsible author: $Author: lvw $
*
@@ -104,7 +104,6 @@ void mgTracklist::sortBy(int col, bool direction)
****************************************************************************/
void mgTracklist::setDisplayColumns(vector<int> cols)
{
-
m_columns = cols;
}
@@ -124,36 +123,38 @@ unsigned int mgTracklist::getNumColumns()
* \brief creates the label string for an item
*
* The list can create a label with different fields (columns).
- * The fields used in the list and their order is set by the function
- using the function setDisplayColumns
- * function getLabel().
+ * The fields used in the list and their order is set using the function setDisplayColumns
+ *
* This function creates a string from these columns, separated by the string
* 'separator'
* in the label and their order
****************************************************************************/
string mgTracklist::getLabel(unsigned int position, const string separator)
{
- string label ="";
+ string label = "";
mgContentItem* item;
- if(position >= m_list.size())
+ if( position >= m_list.size() )
+ {
return "";
-
+ }
else
- {
- item = *(m_list.begin()+position);
- }
-
+ {
+ item = *( m_list.begin() + position );
+ }
+
+ mgDebug( 1, "mgTracklist::getLabel: Starting to iterate columns." );
for( vector<int>::iterator iter = m_columns.begin();
iter != m_columns.end(); iter++ )
- {
+ {
if( iter != m_columns.begin() )
- {
+ {
label += separator;
- }
+ }
+ mgDebug( 1, "mgTracklist::getLabel: obtaining label from item %d", *iter );
label += item->getLabel(*iter);
- }
+ }
return label;
}
@@ -302,6 +303,9 @@ string mgSelectionTreeNode::getRestrictions()
/* -------------------- begin CVS log ---------------------------------
* $Log: mg_content_interface.c,v $
+ * Revision 1.6 2004/07/25 21:33:35 lvw
+ * Removed bugs in finding track files and playlist indexing.
+ *
* Revision 1.5 2004/05/28 15:29:18 lvw
* Merged player branch back on HEAD branch.
*