Skip to content

Commit

Permalink
Stopgap to make psi less broken without psimedia plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin H authored and Martin H committed Apr 6, 2009
1 parent f1fa04e commit 2640838
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/contactview.cpp
Expand Up @@ -61,6 +61,10 @@
#include "bookmarkmanagedlg.h"
#include "bookmarkmanager.h"

#ifdef AVCALL
#include "../psimedia/psimedia.h"
#endif

static inline int rankStatus(int status)
{
switch (status) {
Expand Down Expand Up @@ -1252,7 +1256,7 @@ void ContactProfile::doContextMenu(ContactViewItem *i, const QPoint &pos)

// Voice call
#ifdef AVCALL
if(!isAgent) {
if(!isAgent && PsiMedia::isSupported()) {
#else
if(d->pa->voiceCaller() && !isAgent) {
#endif
Expand Down
3 changes: 2 additions & 1 deletion src/mainwin.cpp
Expand Up @@ -38,6 +38,7 @@
#include <QtAlgorithms>

#ifdef AVCALL
#include "../psimedia/psimedia.h"
#include <QShortcut>
#endif

Expand Down Expand Up @@ -1404,7 +1405,7 @@ void MainWin::showNoFocus()
void MainWin::avcallConfig()
{
#ifdef AVCALL
JingleRtpManager::config();
if (PsiMedia::isSupported()) JingleRtpManager::config();
#endif
}

Expand Down
4 changes: 3 additions & 1 deletion src/psiaccount.cpp
Expand Up @@ -128,6 +128,7 @@
#include "Certificates/CertificateDisplayDialog.h"

#ifdef AVCALL
#include "../psimedia/psimedia.h"
#include "avcall/jinglertp.h"
#include "avcall/calldlg.h"
#endif
Expand Down Expand Up @@ -873,7 +874,7 @@ PsiAccount::PsiAccount(const UserAccount &acc, PsiContactList *parent, CapsRegis
#ifdef AVCALL
d->jingleRtpManager = new JingleRtpManager(this);
connect(d->jingleRtpManager, SIGNAL(incomingReady()), d, SLOT(incoming_call()));
{
if (PsiMedia::isSupported()) {
QStringList features;
features << "urn:xmpp:jingle:0";
features << "urn:xmpp:jingle:apps:rtp:1";
Expand Down Expand Up @@ -3054,6 +3055,7 @@ void PsiAccount::changeStatus(int x)
void PsiAccount::actionVoice(const Jid &j)
{
#ifdef AVCALL
if (!PsiMedia::isSupported()) return;
Jid j2 = j;
if(j.resource().isEmpty()) {
UserListItem *u = find(j);
Expand Down

0 comments on commit 2640838

Please sign in to comment.