diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-08-23 05:53:12 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-08-23 05:53:12 +0800 |
commit | 02c9d8b151cbf35a911c9e864ef93aef25c5757e (patch) | |
tree | 0aa69af68cadacf59ef2af1b57707241e3da3125 /audio/gnome-media | |
parent | ab25f8aff3aafd54043aaa4510f526f638fb30ac (diff) | |
download | marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.tar marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.tar.gz marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.tar.bz2 marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.tar.lz marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.tar.xz marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.tar.zst marcuscom-ports-02c9d8b151cbf35a911c9e864ef93aef25c5757e.zip |
Fix the track progress slider.
Adapted from: linux-cdrom.c
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2705 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio/gnome-media')
-rw-r--r-- | audio/gnome-media/Makefile | 2 | ||||
-rw-r--r-- | audio/gnome-media/files/patch-gnome-cd_bsd-cdrom.c | 47 |
2 files changed, 48 insertions, 1 deletions
diff --git a/audio/gnome-media/Makefile b/audio/gnome-media/Makefile index 8abba2c41..d400015df 100644 --- a/audio/gnome-media/Makefile +++ b/audio/gnome-media/Makefile @@ -7,7 +7,7 @@ PORTNAME= gnomemedia2 PORTVERSION= 2.7.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= audio gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-media/2.7 diff --git a/audio/gnome-media/files/patch-gnome-cd_bsd-cdrom.c b/audio/gnome-media/files/patch-gnome-cd_bsd-cdrom.c new file mode 100644 index 000000000..2a97ef07b --- /dev/null +++ b/audio/gnome-media/files/patch-gnome-cd_bsd-cdrom.c @@ -0,0 +1,47 @@ +--- gnome-cd/bsd-cdrom.c.orig Mon Jan 5 23:12:49 2004 ++++ gnome-cd/bsd-cdrom.c Sun Aug 22 01:06:01 2004 +@@ -896,6 +896,8 @@ + + ASSIGN_MSF (realstatus->relative, blank_msf); + ASSIGN_MSF (realstatus->absolute, blank_msf); ++ ASSIGN_MSF (realstatus->length, blank_msf); ++ + realstatus->track = 1; + switch (subchnl.data->header.audio_status) { + case CD_AS_PLAY_IN_PROGRESS: +@@ -903,6 +905,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 +917,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 +929,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: |