[rygel] core: Minor refactoring of MediaItem class
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Minor refactoring of MediaItem class
- Date: Wed, 26 Aug 2009 22:10:59 +0000 (UTC)
commit 2d0a7ec0c755a9eaff2ab7e66358de5221181e51
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Aug 26 23:10:56 2009 +0300
core: Minor refactoring of MediaItem class
src/rygel/rygel-media-item.vala | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 15db4d6..4594878 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -82,14 +82,10 @@ public class Rygel.MediaItem : MediaObject {
src = Element.make_from_uri (URIType.SRC, this.uris.get (0), null);
}
- if (src != null) {
- var object_class = (ObjectClass) src.get_type ().class_peek ();
-
+ if (src != null && src.get_type ().name () == "GstRTSPSrc") {
// For rtspsrc since some RTSP sources takes a while to start
// transmitting
- if (object_class.find_property ("tcp-timeout") != null) {
- src.tcp_timeout = (int64) 60000000;
- }
+ src.tcp_timeout = (int64) 60000000;
}
return src;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]