[brasero] Remove useless code
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Remove useless code
- Date: Sat, 10 Oct 2009 13:41:04 +0000 (UTC)
commit 0f7f8acd0e3857db12865cf32960544519652e37
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Oct 10 15:38:07 2009 +0200
Remove useless code
libbrasero-burn/brasero-caps-burn.c | 29 ++++++++---------------------
1 files changed, 8 insertions(+), 21 deletions(-)
---
diff --git a/libbrasero-burn/brasero-caps-burn.c b/libbrasero-burn/brasero-caps-burn.c
index 276c9bb..00323d2 100644
--- a/libbrasero-burn/brasero-caps-burn.c
+++ b/libbrasero-burn/brasero-caps-burn.c
@@ -632,27 +632,14 @@ brasero_burn_caps_new_task (BraseroBurnCaps *self,
link = iter->data;
- /* determine the plugin output */
- if (iter->next) {
- BraseroCapsLink *next_link;
-
- next_link = iter->next->data;
- if (next_link == link) {
- /* That's a processing plugin so the output must
- * be the exact same as the input, which is not
- * necessarily the caps type referred to by the
- * link if the link is amongst the first. In
- * that case that's the session input. */
- memcpy (&plugin_output,
- &plugin_input,
- sizeof (BraseroTrackType));
- }
- else {
- memcpy (&plugin_output,
- &next_link->caps->type,
- sizeof (BraseroTrackType));
- }
- }
+ /* determine the plugin output:
+ * if it's not the last one it takes the input
+ * of the next plugin as its output.
+ * Otherwise it uses the final output type */
+ if (iter->next)
+ memcpy (&plugin_output,
+ &next_link->caps->type,
+ sizeof (BraseroTrackType));
else
memcpy (&plugin_output,
&output,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]