Commit 63f19fda43f350bdf6a0e8ab56db66cd5bb87dac

Authored by Imanol-Mikel Barba Sabariego
1 parent 2a6cf839

--no commit message

src/com/upc/pbe/upcnews/HLS.java
... ... @@ -26,8 +26,10 @@ public class HLS {
26 26 //Primer vídeo que hi hagi, amb la millor qualitat possible
27 27 for(int i = 0 ; i < ppls.get(numvideo).getLists().get(quality).getSegments().size() ; i++){
28 28  
  29 + Segment seg = ppls.get(numvideo).getLists().get(quality).getSegments().get(i);
  30 +
29 31 //canviar .ts en .mp4
30   - reader = ToolFactory.makeReader(ppls.get(numvideo).getLists().get(quality).getSegments().get(i).getURL());
  32 + reader = ToolFactory.makeReader(seg.getURL());
31 33 reader.addListener(ToolFactory.makeWriter("output.mov", reader));
32 34 while (reader.readPacket() == null);
33 35 }
... ...