head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.24 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.22 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.20 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.18 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.16 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.14 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.12 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.10 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.8 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.6 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.4 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.2 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.2.0.10 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.8 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.6 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.4 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.2 pkgsrc-2006Q2-base:1.2; locks; strict; comment @# @; 1.3 date 2007.07.15.19.41.29; author xtraeme; state dead; branches; next 1.2; 1.2 date 2006.04.09.08.21.22; author xtraeme; state Exp; branches; next 1.1; 1.1 date 2006.04.09.07.26.52; author xtraeme; state Exp; branches; next ; desc @@ 1.3 log @Update to 0.99.5: After long time, a new xine-ui version is now available. There are fixes for security issues with playlists (upgrade recommended!), fixes for crashes, memleaks and bugs. Functional enhancements and features are added, appearance of non-skinned windows is harmonized (with more space for text), translations are updated. @ text @$NetBSD: patch-ap,v 1.2 2006/04/09 08:21:22 xtraeme Exp $ --- src/xitk/oxine/mediamarks.c.orig Tue Sep 20 23:58:50 2005 +++ src/xitk/oxine/mediamarks.c Wed Sep 21 00:13:23 2005 @@@@ -439,34 +439,19 @@@@ static void parse_m3u(const char *mrl, list_t *items) { FILE *file; - char **line; - int *n; - int a; + char line[1024]; file = fopen(mrl, "r"); - if(!file) return ; + if(!file) return; - n = ho_new(size_t); - line = ho_new(char *); - - *line = NULL; - *n = 0; - a = getline(line, n, file); - if(a<=0) return; - - while((a = getline(line, n, file))>0) { - char *str; + while(fgets(line, sizeof(line) - 1, file) != NULL) { playitem_t *item; - if(*line[0] == '#') continue; - str = strndup(*line, a-1); + if(line[0] == '#') continue; /* printf("%s\n", str); */ - item = playitem_new (TYPE_REG, basename(str), str, list_new()); - ho_free(str); + item = playitem_new (TYPE_REG, basename(line), line, list_new()); playitem_append(item, items); } - ho_free(line); - ho_free(n); fclose(file); } @ 1.2 log @Sync patch-ap with FreeBSD/ports. Replacing strndup() and getline() with fgets(). @ text @d1 1 a1 1 $NetBSD: patch-ap,v 1.1 2006/04/09 07:26:52 xtraeme Exp $ @ 1.1 log @Update to 0.99.4: xine-ui (0.99.4) unstable; urgency=low * Fixed deadlock, segfaults and mem-leaks, several other fixes and enhancements, can't remember details (thanks also to Marcelo Jimenez and Jakub Labath) * Menu to reset video controls * fixed menu shortcut strings allocation/freeing [bug #1223022] * audio post plugin support * use UTF-8 for Japanese locale if nl_langinfo doesn't work [bug #1096974] * expand tabs in post-plugin help * merge some osd menus from oxine * aspect ratio fixed for multihead setups (especially TwinView) [bugs #1089328, #1001702 and #989157] * fixed parsing post plugin parameters of type double for some locales * autoload subtitles with .txt extension too * be more POSIX-compliant (head, tail) (build fix) [bug #1172729] * Russian translations (thanks to Pavel Maryanov) * forced not loading old playlist with -P option xine-ui (0.99.3) unstable; urgency=low * enlarge stream info window (required for Russian translation), * possibility to specify more than one playlist in command line, * unlock mutex before destroying (thanks to Matthias Drochner), * netBSD mutex locking fix, * cursor support implementation into xiTK, * use post plugins for deinterlacing, * fix segfault on enqueuing, * fix segfault on playlist deletion, * add non-official subtitle support into ASX playlists, * add get_speed in session control optarg, * restore original sound volume on exit, * fix memory corruption with huge playlists, * remove obsolete "black stream hack", * reset screensaver after playback resume, * various WM layering bugs, * handle new UTF8 meta infos, * Japanese translations (thanks to Tadashi Jokagi), * visualization switching while playback is running fix, * handle .pls playlist inside URL, * new 'b' shortcut (border visibility toggle), * support alpha channel in splash screen image, @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- src/xitk/oxine/mediamarks.c.orig 2006-04-08 21:16:59.000000000 +0200 +++ src/xitk/oxine/mediamarks.c 2006-04-08 21:19:27.000000000 +0200 @@@@ -451,15 +451,15 @@@@ d7 16 a22 2 *line = NULL; *n = 0; d24 2 a25 3 + a = fgets(line, n, file); if(a<=0) return; d27 2 a28 2 + while((a = fgets(line, n, file))>0) { char *str; d31 1 a31 1 if(*line[0] == '#') continue; d33 1 a33 1 + str = strdup(*line); d35 9 a43 2 item = playitem_new (TYPE_REG, basename(str), str, list_new()); ho_free(str); @