Switch to unified view

a/src/ohreceiver.cxx b/src/ohreceiver.cxx
...
...
185
            if (it->second == m_httpuri) {
185
            if (it->second == m_httpuri) {
186
                id = it->first;
186
                id = it->first;
187
            }
187
            }
188
        }
188
        }
189
        if (id == -1) {
189
        if (id == -1) {
190
            ok = m_dev->m_ohpl->insertUri(0, m_httpuri,
190
            UpSong metaformpd;
191
                                          SoapHelp::xmlUnquote(m_metadata),&id);
191
            string metadata(SoapHelp::xmlUnquote(m_metadata));
192
            if (!uMetaToUpSong(metadata, &metaformpd)) {
193
                LOGERR("OHReceiver::play: failed to parse metadata " << " Uri [" 
194
                       << m_httpuri << "] Metadata [" << metadata << "]"
195
                       << endl);
196
                goto out;
197
            }
198
            id = m_dev->m_mpdcli->insertAfterId(m_httpuri, 0, metaformpd);
192
            if (!ok) {
199
            if (id == -1) {
193
                LOGERR("OHReceiver::play: insertUri() failed\n");
200
                LOGERR("OHReceiver::play: insertAfterId() failed\n");
194
                goto out;
201
                goto out;
195
            }
202
            }
196
        }
203
        }
197
204
198
        ok = m_dev->m_mpdcli->playId(id);
205
        ok = m_dev->m_mpdcli->playId(id);