equal
deleted
inserted
replaced
1112 case EEXECUTING: |
1112 case EEXECUTING: |
1113 case EBUFFERING: |
1113 case EBUFFERING: |
1114 { |
1114 { |
1115 TInt pos = 0; |
1115 TInt pos = 0; |
1116 CancelRequests(); |
1116 CancelRequests(); |
|
1117 // we should not delete the iFile, it causes the CAF to delete the rights if they are expired. |
|
1118 |
1117 // Since the requests will not be deleted if it is still inside RunL() (iState is EProcessing), |
1119 // Since the requests will not be deleted if it is still inside RunL() (iState is EProcessing), |
1118 // iReadRequestPending should not be initialized to 0 always |
1120 // iReadRequestPending should not be initialized to 0 always |
1119 iReadRequestPending = iRequests.Count(); |
1121 iReadRequestPending = iRequests.Count(); |
1120 delete iFile; |
|
1121 iFile = NULL; |
|
1122 //iDLFileSize = -1; |
1122 //iDLFileSize = -1; |
1123 iSnkBytes=pos; |
1123 iSnkBytes=pos; |
1124 iBufferedDataSize = 0; |
1124 iBufferedDataSize = 0; |
1125 EmptySinkQueue(); |
1125 EmptySinkQueue(); |
1126 StateChanged(ESTOPPED); |
1126 StateChanged(ESTOPPED); |
1621 { |
1621 { |
1622 |
1622 |
1623 if(aStatus != KErrNone) |
1623 if(aStatus != KErrNone) |
1624 { |
1624 { |
1625 TMMFEvent event(KMMFErrorCategoryControllerGeneralError, aStatus.Int()); |
1625 TMMFEvent event(KMMFErrorCategoryControllerGeneralError, aStatus.Int()); |
1626 iEventHandler->SendEventToClient(event); |
1626 //TODO: Need to send this error back to client. Currently removing this as iEventHandler is never set. |
|
1627 //iEventHandler->SendEventToClient(event); |
1627 return KErrNone; |
1628 return KErrNone; |
1628 } |
1629 } |
1629 else |
1630 else |
1630 { |
1631 { |
1631 |
1632 |