Make a copy of device string as we're going to free it

Original commit message from CVS:
Make a copy of device string as we're going to free it
This commit is contained in:
Wim Taymans 2002-09-01 13:57:57 +00:00
parent 839878c50d
commit 0f56077797
2 changed files with 2 additions and 2 deletions

2
common

@ -1 +1 @@
Subproject commit f0da7b89bea3eb2ed1d149166f28afa5e670dec2
Subproject commit 355c616d5f6779ea194f8b61704229c6fb04ae7b

View file

@ -246,7 +246,7 @@ cdparanoia_init (CDParanoia *cdparanoia)
gst_pad_set_get_function (cdparanoia->srcpad, cdparanoia_get);
gst_element_add_pad (GST_ELEMENT (cdparanoia), cdparanoia->srcpad);
cdparanoia->device = "/dev/cdrom";
cdparanoia->device = g_strdup ("/dev/cdrom");
cdparanoia->generic_device = NULL;
cdparanoia->start_sector = -1;
cdparanoia->end_sector = -1;