[rygel] gst-launch: Minor coding-style fix
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] gst-launch: Minor coding-style fix
- Date: Fri, 9 Jul 2010 14:44:55 +0000 (UTC)
commit bc00de81e71f19a66a4d5af79c7e105a04a59dd9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Jul 9 17:21:24 2010 +0300
gst-launch: Minor coding-style fix
src/plugins/gst-launch/rygel-gst-launch-item.vala | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gst-launch/rygel-gst-launch-item.vala b/src/plugins/gst-launch/rygel-gst-launch-item.vala
index cf25d59..1277764 100644
--- a/src/plugins/gst-launch/rygel-gst-launch-item.vala
+++ b/src/plugins/gst-launch/rygel-gst-launch-item.vala
@@ -36,10 +36,16 @@ public class Rygel.GstLaunch.Item : Rygel.MediaItem {
string title,
string mime_type,
string launch_line) {
- base (id,
- parent,
- title,
- (mime_type.has_prefix ("audio") ? MediaItem.AUDIO_CLASS : MediaItem.VIDEO_CLASS));
+ string upnp_class;
+
+ if (mime_type.has_prefix ("audio")) {
+ upnp_class = MediaItem.AUDIO_CLASS;
+ } else {
+ upnp_class = MediaItem.VIDEO_CLASS;
+ }
+
+ base (id, parent, title, upnp_class);
+
this.mime_type = mime_type;
this.launch_line = launch_line;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]