Commit d4945ac5 authored by FireMasterK's avatar FireMasterK
Browse files

Constructor cleanup.

parent 3f6a601b
......@@ -51,8 +51,7 @@ public class AudioStream extends Stream {
* @param itag the ItagItem to use
*/
public AudioStream(String url, ItagItem itag) {
super(url, itag.getMediaFormat());
this.average_bitrate = itag.avgBitrate;
this(url, itag.getMediaFormat(), itag.avgBitrate);
this.bitrate = itag.bitrate;
this.initStart = itag.initStart;
this.initEnd = itag.initEnd;
......
......@@ -48,9 +48,7 @@ public class VideoStream extends Stream {
}
public VideoStream(String url, boolean isVideoOnly, ItagItem itag) {
super(url, itag.getMediaFormat());
this.resolution = itag.resolutionString;
this.isVideoOnly = isVideoOnly;
this(url, itag.getMediaFormat(), itag.resolutionString, isVideoOnly);
this.bitrate = itag.bitrate;
this.initStart = itag.initStart;
this.initEnd = itag.initEnd;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment