summaryrefslogtreecommitdiffstats
path: root/audio/gnome-media/files
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-08-22 04:58:43 +0000
committermarcus <marcus@FreeBSD.org>2004-08-22 04:58:43 +0000
commit04defe46341232b7780fcadbad397ecbac883f62 (patch)
tree694f45bd44266369589366bb1cd91be2246fd8bc /audio/gnome-media/files
parent2239b93c7eaf5601142d05aeaefe0ce56d72391d (diff)
downloadFreeBSD-ports-04defe46341232b7780fcadbad397ecbac883f62.zip
FreeBSD-ports-04defe46341232b7780fcadbad397ecbac883f62.tar.gz
* Fix a problem where track progress would not be updated when playing a
CD [1] * Convert to new libtool scheme Adapted from: gnome-cd's linux-cdrom.c
Diffstat (limited to 'audio/gnome-media/files')
-rw-r--r--audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c b/audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c
new file mode 100644
index 0000000..4d61c74
--- /dev/null
+++ b/audio/gnome-media/files/patch-gnome-cd_freebsd-cdrom.c
@@ -0,0 +1,38 @@
+--- gnome-cd/freebsd-cdrom.c.orig Sun Aug 22 00:42:31 2004
++++ gnome-cd/freebsd-cdrom.c Sun Aug 22 00:48:36 2004
+@@ -903,6 +903,11 @@
+ ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf);
+ ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf);
+ realstatus->track = subchnl.data->what.position.track_number;
++ if(priv && realstatus->track>0 &&
++ realstatus->track<=priv->number_tracks){
++ /* track_info may not be initialized */
++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length);
++ }
+ break;
+
+ case CD_AS_PLAY_PAUSED:
+@@ -910,6 +915,11 @@
+ ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf);
+ ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf);
+ realstatus->track = subchnl.data->what.position.track_number;
++ if(priv && realstatus->track>0 &&
++ realstatus->track<=priv->number_tracks){
++ /* track_info may not be initialized */
++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length);
++ }
+ break;
+
+ case CD_AS_PLAY_COMPLETED:
+@@ -917,6 +927,11 @@
+ ASSIGN_MSF (realstatus->relative, subchnl.data->what.position.reladdr.msf);
+ ASSIGN_MSF (realstatus->absolute, subchnl.data->what.position.absaddr.msf);
+ realstatus->track = subchnl.data->what.position.track_number;
++ if(priv && realstatus->track>0 &&
++ realstatus->track<=priv->number_tracks){
++ /* track_info may not be initialized */
++ ASSIGN_MSF (realstatus->length, priv->track_info[realstatus->track-1].length);
++ }
+ break;
+
+ case CD_AS_AUDIO_INVALID:
OpenPOWER on IntegriCloud