[rygel] core: Don't append extension on error
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Don't append extension on error
- Date: Thu, 19 Jan 2012 18:50:37 +0000 (UTC)
commit faaa2bb33a80ba18a0fcf7c4b48aa521eb94cf95
Author: Jens Georg <mail jensge org>
Date: Thu Jan 19 19:46:19 2012 +0100
core: Don't append extension on error
https://bugzilla.gnome.org/show_bug.cgi?id=644538
src/rygel/rygel-http-item-uri.vala | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/rygel/rygel-http-item-uri.vala b/src/rygel/rygel-http-item-uri.vala
index e90c927..5ed292f 100644
--- a/src/rygel/rygel-http-item-uri.vala
+++ b/src/rygel/rygel-http-item-uri.vala
@@ -64,13 +64,7 @@ internal class Rygel.HTTPItemURI : Object {
if (thumbnails.size > thumbnail_index) {
this.extension = thumbnails[thumbnail_index].file_extension;
- } else {
- this.extension = "jpg";
- // what now? throw an error?
}
- } else {
- this.extension = "jpg";
- // what now? throw an error?
}
} else if (subtitle_index > -1) {
if (item is VideoItem) {
@@ -78,13 +72,6 @@ internal class Rygel.HTTPItemURI : Object {
if (subtitles.size > subtitle_index) {
this.extension = subtitles[subtitle_index].caption_type;
- } else {
- // what now? throw an error?
- this.extension = "srt";
- }
- } else {
- // what now? throw an error?
- this.extension = "srt";
}
} else if (transcode_target != null) {
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]