~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/burn-process.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-10 01:16:00 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080810011600-bfb87m1rs6n0qx16
Tags: upstream-0.8.1
ImportĀ upstreamĀ versionĀ 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 ***************************************************************************/
8
8
 
9
9
/*
10
 
 *  This program is free software; you can redistribute it and/or modify
 
10
 *  Brasero is free software; you can redistribute it and/or modify
11
11
 *  it under the terms of the GNU General Public License as published by
12
12
 *  the Free Software Foundation; either version 2 of the License, or
13
13
 *  (at your option) any later version.
14
14
 *
15
 
 *  This program is distributed in the hope that it will be useful,
 
15
 *  Brasero is distributed in the hope that it will be useful,
16
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
18
 *  GNU Library General Public License for more details.
19
19
 *
20
20
 *  You should have received a copy of the GNU General Public License
21
 
 *  along with this program; if not, write to the Free Software
22
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
21
 *  along with this program; if not, write to:
 
22
 *      The Free Software Foundation, Inc.,
 
23
 *      51 Franklin Street, Fifth Floor
 
24
 *      Boston, MA  02110-1301, USA.
23
25
 */
24
26
 
25
27
#ifdef HAVE_CONFIG_H
285
287
                g_free (uri);
286
288
        }
287
289
 
288
 
        brasero_job_add_track (BRASERO_JOB (self), track);
 
290
        if (track) {
 
291
                brasero_job_add_track (BRASERO_JOB (self), track);
289
292
 
290
 
        /* It's good practice to unref the track afterwards as we don't need it
291
 
         * anymore. BraseroTaskCtx refs it. */
292
 
        brasero_track_unref (track);
 
293
                /* It's good practice to unref the track afterwards as we don't
 
294
                 * need it anymore. BraseroTaskCtx refs it. */
 
295
                brasero_track_unref (track);
 
296
        }
293
297
 
294
298
        klass->post (BRASERO_JOB (self));
295
299
        return BRASERO_BURN_OK;