javauis/mmapi_qt/baseline/javasrc/com/nokia/microedition/media/protocol/SeekThread.java
changeset 79 2f468c1958d0
parent 23 98ccebc37403
equal deleted inserted replaced
76:4ad59aaee882 79:2f468c1958d0
    46     /**
    46     /**
    47      * From Thread class.
    47      * From Thread class.
    48      */
    48      */
    49     public void run()
    49     public void run()
    50     {
    50     {
       
    51         Logger.ELOG(Logger.EJavaMMAPI,
       
    52                     "MMA::seekThread run +");
    51         try
    53         try
    52         {
    54         {
    53             iSeekControl.seek(0);
    55             iSeekControl.seek(0);
       
    56             Logger.ELOG(Logger.EJavaMMAPI,
       
    57                         "MMA::seekThread run after iSeekControl.seek");
    54         }
    58         }
    55         catch (Exception e)
    59         catch (Exception e)
    56         {
    60         {
    57             // If seek fails, stream cannot be read and SeekControl's target
    61             // If seek fails, stream cannot be read and SeekControl's target
    58             // read must return -1 or throw an exception.
    62             // read must return -1 or throw an exception.
    61         }
    65         }
    62 
    66 
    63         // notify that seek is ready
    67         // notify that seek is ready
    64         synchronized (iWaitObject)
    68         synchronized (iWaitObject)
    65         {
    69         {
       
    70             Logger.ELOG(Logger.EJavaMMAPI,
       
    71                         "MMA::seekThread run before iWaitObject.notify()");
    66             iWaitObject.notify();
    72             iWaitObject.notify();
       
    73             Logger.ELOG(Logger.EJavaMMAPI,
       
    74                         "MMA::seekThread run -");
    67         }
    75         }
    68     }
    76     }
    69 }
    77 }