Dear Thomas and other folks,


Am Sonntag, den 23.09.2012, 16:40 +0200 schrieb Paul Menzel:

> Am Sonntag, den 23.09.2012, 13:03 +0200 schrieb Thomas Schmitt:

[…]

> > > Is there some way to simulate a burner to find out what happened?
> > 
> > libburn would accept burner addresses like
> >   stdio:/tmp/my_emulated_drive
> > which would behave like DVD-RAM or DVD+RW. I.e. quite different
> > from DVD-R or DVD+R. Nevertheless such an emulated drive would
> > allow to exercise the communications between libisofs and libburn,
> > as done by Brasero.
> > 
> > I do not know how to make Brasero use such a drive address.
> > Probably one would have to hack its source.
> 
> I will take a look.

And I did and came up with the attached patch. So for anyone wanting to
try it if he can reproduce the problems with this also go ahead.

It seems to even emulate the slow writing speed. ;-)

[…]


Thanks,

Paul
From a95089b51414b86466b0a74d1e91ebaf71f5c5d9 Mon Sep 17 00:00:00 2001
From: Paul Menzel <paulepan...@users.sourceforge.net>
Date: Wed, 10 Oct 2012 11:09:59 +0200
Subject: [PATCH] burn-libburn-common.c: Use std:/tmp/my_emulated_drive

---
 plugins/libburnia/burn-libburn-common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/libburnia/burn-libburn-common.c b/plugins/libburnia/burn-libburn-common.c
index 1965b86..ec9ec8b 100644
--- a/plugins/libburnia/burn-libburn-common.c
+++ b/plugins/libburnia/burn-libburn-common.c
@@ -164,7 +164,7 @@ brasero_libburn_common_ctx_new (BraseroJob *job,
 
 	/* we just want to scan the drive proposed by drive */
 	brasero_job_get_device (job, &device);
-	res = burn_drive_convert_fs_adr (device, libburn_device);
+	res = burn_drive_convert_fs_adr ("stdio:/tmp/my_emulated_drive, libburn_device);
 	g_free (device);
 	if (res <= 0) {
 		g_set_error (error,
-- 
1.7.10.4

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to