Adds some extra abstraction to streams

This commit is contained in:
2020-05-11 17:51:49 +02:00
parent 58dcb7fd35
commit 2404d85468
5 changed files with 34 additions and 33 deletions

View File

@ -3,7 +3,7 @@ package net.knarcraft.ffmpegconverter.streams;
/**
* An object representation of a subtitle stream in a media file
*/
public class SubtitleStream extends StreamObject {
public class SubtitleStream extends AbstractStream implements StreamObject {
final private String language;
final private String title;
final private String file;
@ -22,7 +22,6 @@ public class SubtitleStream extends StreamObject {
*/
public SubtitleStream(String codecName, int absoluteIndex, int relativeIndex, String language, String title,
String file) {
this.codecType = "subtitle";
this.codecName = codecName;
this.absoluteIndex = absoluteIndex;
this.language = language;