rygel r669 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r669 - trunk/src/rygel
- Date: Sun, 15 Mar 2009 19:02:05 +0000 (UTC)
Author: zeeshanak
Date: Sun Mar 15 19:02:05 2009
New Revision: 669
URL: http://svn.gnome.org/viewvc/rygel?rev=669&view=rev
Log:
No need to get encoder from it's pad.
Modified:
trunk/src/rygel/rygel-transcode-src.vala
Modified: trunk/src/rygel/rygel-transcode-src.vala
==============================================================================
--- trunk/src/rygel/rygel-transcode-src.vala (original)
+++ trunk/src/rygel/rygel-transcode-src.vala Sun Mar 15 19:02:05 2009
@@ -73,18 +73,19 @@
private void decodebin_pad_added (Element decodebin,
Pad new_pad) {
- Pad enc_pad = this.audio_enc.get_compatible_pad (new_pad, null);
+ var encoder = this.audio_enc;
+
+ Pad enc_pad = encoder.get_compatible_pad (new_pad, null);
if (enc_pad == null) {
// Try video encoder
- enc_pad = this.video_enc.get_compatible_pad (new_pad, null);
+ encoder = this.video_enc;
+ enc_pad = encoder.get_compatible_pad (new_pad, null);
}
if (enc_pad == null) {
return;
}
- var encoder = enc_pad.get_parent_element ();
-
this.add_many (encoder);
encoder.link (this.muxer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]