~ubuntu-branches/ubuntu/wily/mplayerplug-in/wily

« back to all changes in this revision

Viewing changes to Source/plugin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Tirabassi
  • Date: 2008-07-06 23:35:53 UTC
  • mto: (3.1.2 lenny)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: james.westby@ubuntu.com-20080706233553-taa8l29w5yrr1z47
Tags: upstream-3.55
ImportĀ upstreamĀ versionĀ 3.55

Show diffs side-by-side

added added

removed removed

Lines of Context:
1154
1154
                    // hard code 0 here by doing this it actually makes nomediacache work properly
1155
1155
                    // http src url's are automatically requested, so if we request an http here too, we get it twice
1156
1156
                    if (isMms(url, 0)) {
1157
 
                        snprintf(list->url, 1024, "%s", url);
 
1157
                        snprintf(list->url, 4096, "%s", url);
1158
1158
                        state = STATE_STARTED_PLAYER;
1159
1159
                        list->mmsstream = 1;
1160
1160
                        if (threadsetup == 0 && controlwindow == 0)
1164
1164
 
1165
1165
                if (fname != NULL) {
1166
1166
                    if (isMms(fname, nomediacache)) {
1167
 
                        snprintf(list->url, 1024, "%s", fname);
 
1167
                        snprintf(list->url, 4096, "%s", fname);
1168
1168
                        state = STATE_STARTED_PLAYER;
1169
1169
                        list->mmsstream = 1;
1170
1170
                        if (threadsetup == 0 && controlwindow == 0)
1182
1182
 
1183
1183
                if ((href != NULL) && (url == NULL) && (fname == NULL)) {
1184
1184
                    if (isMms(href, nomediacache)) {
1185
 
                        snprintf(list->url, 1024, "%s", href);
 
1185
                        snprintf(list->url, 4096, "%s", href);
1186
1186
                        state = STATE_STARTED_PLAYER;
1187
1187
                        list->mmsstream = 1;
1188
1188
                        if (threadsetup == 0 && controlwindow == 0)
1421
1421
                     n->url, url, (href == NULL) ? "(NULL)" : href);
1422
1422
 
1423
1423
            if (n->url != NULL && url != NULL) {
1424
 
                if ((strncmp(n->url, url, 1024) == 0) && href != NULL) {
 
1424
                if ((strncmp(n->url, url, 4096) == 0) && href != NULL) {
1425
1425
                    if (srcToButton(n->fname, this)) {
1426
1426
                        n->play = 0;
1427
1427
                        pthread_mutex_unlock(&playlist_mutex);
1428
1428
                        return NPERR_NO_ERROR;
1429
1429
                    } else {
1430
1430
                        n = newNode();
1431
 
                        snprintf(n->url, 1024, "%s", href);
 
1431
                        snprintf(n->url, 4096, "%s", href);
1432
1432
                        addToEnd(td->list, n);
1433
1433
                        pthread_mutex_unlock(&playlist_mutex);
1434
1434
                        NPN_GetURL(mInstance, href, NULL);
1443
1443
                        return NPERR_NO_ERROR;
1444
1444
                    } else {
1445
1445
                        n = newNode();
1446
 
                        snprintf(n->url, 1024, "%s", href);
 
1446
                        snprintf(n->url, 4096, "%s", href);
1447
1447
                        addToEnd(td->list, n);
1448
1448
                        pthread_mutex_unlock(&playlist_mutex);
1449
1449
                        NPN_GetURL(mInstance, href, NULL);
1725
1725
                }
1726
1726
            }
1727
1727
        } else {
1728
 
            snprintf(n->url, 1024, "%s", stream->url);
 
1728
            snprintf(n->url, 4096, "%s", stream->url);
1729
1729
            break;
1730
1730
        }
1731
1731
        n = n->next;
1742
1742
                 ||
1743
1743
                 (strncmp
1744
1744
                  (getURLFilename(td->list->url),
1745
 
                   getURLFilename(stream->url), 1024) == 0))
 
1745
                   getURLFilename(stream->url), 4096) == 0))
1746
1746
                && (mmsstream == 0)) {
1747
1747
                if (DEBUG)
1748
1748
                    printf("Redirected initial URL\n");
1749
1749
                n = list;
1750
 
                snprintf(n->url, 1024, "%s", stream->url);
 
1750
                snprintf(n->url, 4096, "%s", stream->url);
1751
1751
            }
1752
1752
        }
1753
1753
    }
1847
1847
            printf("didn't find the node in the playlist\n %s\n",
1848
1848
                   stream->url);
1849
1849
        n = newNode();
1850
 
        snprintf(n->url, 1024, "%s", stream->url);
 
1850
        snprintf(n->url, 4096, "%s", stream->url);
1851
1851
        if ((nomediacache == 1) && (stream->end > 16384)) {
1852
1852
            addToEnd(td->list, n);
1853
1853
            pthread_mutex_unlock(&playlist_mutex);