Switch to unified view
a/upmpd/avtransport.cxx | b/upmpd/avtransport.cxx | ||
---|---|---|---|
... |
... |
||
350 | if (posend > curpos+1) |
350 | if (posend > curpos+1) |
351 | m_dev->m_mpdcli->deletePosRange(curpos + 1, posend); |
351 | m_dev->m_mpdcli->deletePosRange(curpos + 1, posend); |
352 | } |
352 | } |
353 | } |
353 | } |
354 | 354 | ||
355 | int songid; |
355 | UpSong metaformpd; |
356 | uMetaToUpSong(metadata, &metaformpd); |
||
357 | |||
356 | if ((songid = m_dev->m_mpdcli->insert(uri, setnext?curpos+1:curpos)) < 0) { |
358 | int songid = m_dev->m_mpdcli->insert(uri, setnext ? curpos + 1 : curpos, |
359 | metaformpd); |
||
360 | if (songid < 0) { |
||
357 | return UPNP_E_INTERNAL_ERROR; |
361 | return UPNP_E_INTERNAL_ERROR; |
358 | } |
362 | } |
359 | 363 | ||
360 | if (setnext) { |
364 | if (setnext) { |
361 | m_nextUri = uri; |
365 | m_nextUri = uri; |