rygel r756 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r756 - trunk/src/rygel
- Date: Sat, 28 Mar 2009 00:45:21 +0000 (UTC)
Author: zeeshanak
Date: Sat Mar 28 00:45:20 2009
New Revision: 756
URL: http://svn.gnome.org/viewvc/rygel?rev=756&view=rev
Log:
MP3Transcoder doesn't need to proxy it's Bin's methods.
MP2TStrancoder can directly uses MP3TranscoderBin's methods.
Modified:
trunk/src/rygel/rygel-mp2ts-transcoder.vala
trunk/src/rygel/rygel-mp3-transcoder.vala
Modified: trunk/src/rygel/rygel-mp2ts-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder.vala Sat Mar 28 00:45:20 2009
@@ -81,11 +81,10 @@
int width,
int height)
throws Error {
- var mp3_transcoder = new MP3Transcoder (MP3Layer.TWO);
-
Element decodebin = TranscoderBin.create_element (DECODEBIN, DECODEBIN);
- this.audio_enc = mp3_transcoder.create_encoder (null,
- AUDIO_ENC_SINK);
+ this.audio_enc = MP3TranscoderBin.create_encoder (MP3Layer.TWO,
+ null,
+ AUDIO_ENC_SINK);
this.video_enc = MP2TSTranscoderBin.create_encoder (null,
VIDEO_ENC_SINK,
width,
Modified: trunk/src/rygel/rygel-mp3-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp3-transcoder.vala (original)
+++ trunk/src/rygel/rygel-mp3-transcoder.vala Sat Mar 28 00:45:20 2009
@@ -39,14 +39,6 @@
this.layer = layer;
}
- public Element create_encoder (string? src_pad_name,
- string? sink_pad_name)
- throws Error {
- return MP3TranscoderBin.create_encoder (this.layer,
- src_pad_name,
- sink_pad_name);
- }
-
public override Element create_source (Element src) throws Error {
return new MP3TranscoderBin (src, this.layer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]