comparison src/xs_sidplay.h @ 100:426e443240b8

Minor tweaks
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 11 Jan 2004 00:40:02 +0000
parents 4e929bb71057
children 98a72c44f56b
comparison
equal deleted inserted replaced
99:2bc56809ec0b 100:426e443240b8
78 78
79 /* Create the string */ 79 /* Create the string */
80 pcResult = xmms_get_titlestring(xmms_get_gentitle_format(), ptInput); 80 pcResult = xmms_get_titlestring(xmms_get_gentitle_format(), ptInput);
81 81
82 /* Dispose all allocated memory */ 82 /* Dispose all allocated memory */
83 g_free(ptInput->file_ext);
84 g_free(ptInput->date); 83 g_free(ptInput->date);
85 g_free(ptInput->genre); 84 g_free(ptInput->genre);
86 g_free(ptInput); 85 g_free(ptInput);
87 } 86 }
88 else 87 else
137 { 136 {
138 t_xs_sldb_node *tuneLen = NULL; 137 t_xs_sldb_node *tuneLen = NULL;
139 t_xs_tune *pResult; 138 t_xs_tune *pResult;
140 TTUNEINFO tuneInfo; 139 TTUNEINFO tuneInfo;
141 TTUNE *testTune; 140 TTUNE *testTune;
142 gboolean haveInfo = FALSE; 141 gboolean haveInfo = TRUE;
143 gint i; 142 gint i;
144 143
145 /* Check if the tune exists and is readable */ 144 /* Check if the tune exists and is readable */
146 if ((testTune = new TTUNE(pcFilename)) == NULL) 145 if ((testTune = new TTUNE(pcFilename)) == NULL)
147 return NULL; 146 return NULL;
155 /* Get general tune information */ 154 /* Get general tune information */
156 #ifdef _XS_SIDPLAY1_H 155 #ifdef _XS_SIDPLAY1_H
157 haveInfo = testTune->getInfo(tuneInfo); 156 haveInfo = testTune->getInfo(tuneInfo);
158 #endif 157 #endif
159 #ifdef _XS_SIDPLAY2_H 158 #ifdef _XS_SIDPLAY2_H
160 tuneInfo = testTune->getInfo(); 159 testTune->getInfo(tuneInfo);
161 haveInfo = TRUE; 160 haveInfo = TRUE;
162 #endif 161 #endif
163
164 162
165 /* Get length information (NOTE: Do not free this!) */ 163 /* Get length information (NOTE: Do not free this!) */
166 tuneLen = xs_songlen_get(pcFilename); 164 tuneLen = xs_songlen_get(pcFilename);
167 165
168 /* Allocate tuneinfo structure */ 166 /* Allocate tuneinfo structure */