Closed GoogleCodeExporter closed 8 years ago
I believe this patch will fix it...
svn diff
Index: gmtk_media_player.c
===================================================================
--- gmtk_media_player.c (revision 50)
+++ gmtk_media_player.c (working copy)
@@ -2214,7 +2214,8 @@
if (player->subtitle_font != NULL && strlen(player->subtitle_font) > 0) {
fontname = g_strdup(player->subtitle_font);
size = g_strrstr(fontname, " ");
- size[0] = '\0';
+ if (size)
+ size[0] = '\0';
size = g_strrstr(fontname, " Bold");
if (size)
size[0] = '\0';
Fixed in gmtk svn r53
Original comment by kdeko...@gmail.com
on 10 Oct 2011 at 12:46
This almost fixed it. Now, it segfaults at line 2267 in gmtk_media_player.c.
Original comment by unmacaque@gmail.com
on 10 Oct 2011 at 2:39
Another patch, applied to svn r56
svn diff
Index: src/gmtk_media_player.c
===================================================================
--- src/gmtk_media_player.c (revision 55)
+++ src/gmtk_media_player.c (working copy)
@@ -2264,7 +2264,8 @@
if (player->subtitle_font != NULL && strlen(player->subtitle_font) > 0) {
fontname = g_strdup(player->subtitle_font);
size = g_strrstr(fontname, " ");
- size[0] = '\0';
+ if (size)
+ size[0] = '\0';
argv[argn++] = g_strdup_printf("-subfont");
argv[argn++] = g_strdup_printf("%s", fontname);
g_free(fontname);
Original comment by kdeko...@gmail.com
on 10 Oct 2011 at 3:10
That completely fixed it. Thank you!
Original comment by unmacaque@gmail.com
on 10 Oct 2011 at 3:14
Original issue reported on code.google.com by
unmacaque@gmail.com
on 10 Oct 2011 at 7:47Attachments: