Changeset 15989


Ignore:
Timestamp:
05/24/12 00:24:47 (12 years ago)
Author:
nit
Message:

fix hbbtv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/hbbtv/hbbtv.h

    r15988 r15989  
    205205    {
    206206      playerafterend();
    207       operaservicestate = 0;   
     207      operaservicestate = 0;
     208                        free(operaplayurl); operaplayurl = NULL;
     209
     210                        tmpstr = ostrcat(status.lastservice->channellist, NULL, 0, 0);
     211                        servicestart(status.lastservice->channel, tmpstr, NULL, 0);
     212                        free(tmpstr); tmpstr = NULL;
     213                        operaserviceend = 0;
    208214    }
    209215
     
    308314                servicestart(status.lastservice->channel, tmpstr, NULL, 0);
    309315                free(tmpstr); tmpstr = NULL;
    310         }
     316                operaserviceend = 0;
     317        }
     318        free(operaplayurl); operaplayurl = NULL;
    311319
    312320        //reset tv pic size
     
    440448      playerstop();
    441449      playerafterend();
     450                        free(operaplayurl); operaplayurl = NULL;
    442451      operaservicestate = 0;
    443452                }
     
    486495        char* tmpstr = NULL;
    487496                                //Switch back to live tv after vod session ended
    488         operaserviceend = 0;
    489 
    490         tmpstr = ostrcat(status.lastservice->channellist, NULL, 0, 0);
    491         servicestart(status.lastservice->channel, tmpstr, NULL, 0);
    492         free(tmpstr); tmpstr = NULL;
     497
     498                                if(operaserviceend == 1)
     499                                {
     500                operaserviceend = 0;
     501
     502                tmpstr = ostrcat(status.lastservice->channellist, NULL, 0, 0);
     503                servicestart(status.lastservice->channel, tmpstr, NULL, 0);
     504                free(tmpstr); tmpstr = NULL;
     505                                }
     506
     507                                free(operaplayurl); operaplayurl = NULL;
    493508                        }
    494509                }
Note: See TracChangeset for help on using the changeset viewer.