Index: trunk/extensions/OggHandler/cortado/src/com/fluendo/player/Cortado.java |
— | — | @@ -30,8 +30,8 @@ |
31 | 31 | MouseListener, ComponentListener, BusHandler, StatusListener, ActionListener { |
32 | 32 | private static final long serialVersionUID = 1L; |
33 | 33 | |
34 | | - private static Cortado cortado; |
35 | | - private static CortadoPipeline pipeline; |
| 34 | + private Cortado cortado; |
| 35 | + private CortadoPipeline pipeline; |
36 | 36 | |
37 | 37 | private String urlString; |
38 | 38 | private boolean audio; |
— | — | @@ -192,10 +192,10 @@ |
193 | 193 | return res; |
194 | 194 | } |
195 | 195 | |
196 | | - public static void shutDown(Throwable error) { |
| 196 | + public void shutDown(Throwable error) { |
197 | 197 | Debug.log(Debug.INFO, "shutting down: reason: " + error.getMessage()); |
198 | 198 | error.printStackTrace(); |
199 | | - cortado.stop(); |
| 199 | + stop(); |
200 | 200 | } |
201 | 201 | |
202 | 202 | public synchronized void init() { |
— | — | @@ -341,7 +341,7 @@ |
342 | 342 | try { |
343 | 343 | realRun(); |
344 | 344 | } catch (Throwable t) { |
345 | | - Cortado.shutDown(t); |
| 345 | + shutDown(t); |
346 | 346 | } |
347 | 347 | } |
348 | 348 | |