equal
deleted
inserted
replaced
66 { |
66 { |
67 m_player->get_controls(&m_controls); |
67 m_player->get_controls(&m_controls); |
68 m_player->get_settings(&m_settings); |
68 m_player->get_settings(&m_settings); |
69 m_player->get_network(&m_network); |
69 m_player->get_network(&m_network); |
70 |
70 |
|
71 if (m_settings) |
|
72 m_settings->put_autoStart(FALSE); |
|
73 |
71 WMPPlayState state = wmppsUndefined; |
74 WMPPlayState state = wmppsUndefined; |
72 if (m_player->get_playState(&state) == S_OK) |
75 if (m_player->get_playState(&state) == S_OK) |
73 playStateChangeEvent(state); |
76 playStateChangeEvent(state); |
74 |
77 |
75 connect(events, SIGNAL(Buffering(VARIANT_BOOL)), this, SLOT(bufferingEvent(VARIANT_BOOL))); |
78 connect(events, SIGNAL(Buffering(VARIANT_BOOL)), this, SLOT(bufferingEvent(VARIANT_BOOL))); |
423 } |
426 } |
424 } |
427 } |
425 |
428 |
426 void QWmpPlayerControl::setUrl(const QUrl &url) |
429 void QWmpPlayerControl::setUrl(const QUrl &url) |
427 { |
430 { |
428 if (m_player) { |
431 if (url != QWmpPlayerControl::url() && m_player) { |
429 BSTR string = SysAllocString(reinterpret_cast<const wchar_t *>(url.toString().unicode())); |
432 BSTR string = SysAllocString(reinterpret_cast<const wchar_t *>(url.toString().unicode())); |
430 |
433 |
431 m_player->put_URL(string); |
434 m_player->put_URL(string); |
432 |
435 |
433 SysFreeString(string); |
436 SysFreeString(string); |