Added set accessors to Source objects
For Source plugins that can't parse all the required information before creating the object, set accessors are needed to populate the information afterwards.
This commit is contained in:
@@ -28,26 +28,50 @@ class RippingCluster_Rips_SourceAudioTrack {
|
||||
return $name;
|
||||
}
|
||||
|
||||
public function setName($name) {
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function format() {
|
||||
return $this->format;
|
||||
}
|
||||
|
||||
public function setFormat($format) {
|
||||
$this->format = $format;
|
||||
}
|
||||
|
||||
public function channels() {
|
||||
return $this->channels;
|
||||
}
|
||||
|
||||
public function setChannels($channels) {
|
||||
$this->channels = $channels;
|
||||
}
|
||||
|
||||
public function language() {
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
public function setLanguage($language) {
|
||||
$this->language = $language;
|
||||
}
|
||||
|
||||
public function samplerate() {
|
||||
return $this->samplerate;
|
||||
}
|
||||
|
||||
public function setSampleRate($sample_rate) {
|
||||
$this->samplerate = $sample_rate;
|
||||
}
|
||||
|
||||
public function bitrate() {
|
||||
return $this->bitrate;
|
||||
}
|
||||
|
||||
public function setBitRate($bit_rate) {
|
||||
$this->bitrate = $bit_rate;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
@@ -22,14 +22,26 @@ class RippingCluster_Rips_SourceSubtitleTrack {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setName($name) {
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function language() {
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
public function setLanguage($language) {
|
||||
$this->language = $language;
|
||||
}
|
||||
|
||||
public function format() {
|
||||
return $this->format;
|
||||
}
|
||||
|
||||
public function setFormat($format) {
|
||||
$this->format = $format;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
@@ -54,22 +54,42 @@ class RippingCluster_Rips_SourceTitle {
|
||||
return $this->width;
|
||||
}
|
||||
|
||||
public function setWidth($width) {
|
||||
$this->width = $width;
|
||||
}
|
||||
|
||||
public function height() {
|
||||
return $this->height;
|
||||
}
|
||||
|
||||
public function setHeight($height) {
|
||||
$this->height = $height;
|
||||
}
|
||||
|
||||
public function displayAspect() {
|
||||
return $this->display_aspect;
|
||||
}
|
||||
|
||||
public function setDisplayAspect($display_aspect) {
|
||||
$this->display_aspect = $display_aspect;
|
||||
}
|
||||
|
||||
public function pixelAspect() {
|
||||
return $this->pixel_aspect;
|
||||
}
|
||||
|
||||
public function setPixelAspect($pixel_aspect) {
|
||||
$this->pixel_aspect = $pixel_aspect;
|
||||
}
|
||||
|
||||
public function framerate() {
|
||||
return $this->framerate;
|
||||
}
|
||||
|
||||
public function setFramerate($framerate) {
|
||||
$this->framerate = $framerate;
|
||||
}
|
||||
|
||||
public function setDisplayInfo($width, $height, $display_aspect, $pixel_aspect, $framerate) {
|
||||
$this->width = $width;
|
||||
$this->height = $height;
|
||||
|
||||
Reference in New Issue
Block a user