A while ago David posted a build failure with kmplayer:
gstplayer.cpp:1009:5: error: C99 designator 'b' outside aggregate initializer
I don't know what the error means. David proposed a patch but nobody responded as to whether his patch was legitimate. Yesterday I tried to build kmplayer with gcc 4.7. I saw the same failure. I forgot about David's query. I looked around the web for clues to resolve the problem. I ran into this:
http://websvn.kde.org/?view=revision&revision=686006
The patch description is exactly what David and I saw with the build failure. The patch was to the xineplayer.cpp module. Other than the difference between "XINE" and "XVIDEO" I figured the patch is just what the doctor ordered.
I massaged the patch for the gstplayer.cpp module and compiled. No failures and the package size is the same as non gcc 4.7 builds.
I tested the patch with a non gcc 4.7 build too.
I pushed the patch in GIT hash 5106117b.
Odd that the "C99 designator" problem was addressed in the xineplayer.cpp module yet the same exact code in gstplayer.cpp was not.
The patch does not include fixes for xine-libs. Because there remains a wide mix of xine-libs versions being used, at least for now, the original patch David proposed should have some preprocessor tests like we did with several other patches. That way the patch can be pushed to GIT and work for all versions of xine-libs.
I will try to do that. I searched the list archives but could not determine the exact version when the problems start. Which version of xine-libs causes the problems?
Darrell
The patch does not include fixes for xine-libs. Because there remains a wide mix of xine-libs versions being used, at least for now, the original patch David proposed should have some preprocessor tests like we did with several other patches. That way the patch can be pushed to GIT and work for all versions of xine-libs.
I will try to do that. I searched the list archives but could not determine the exact version when the problems start. Which version of xine-libs causes the problems?
I have a patch for kmplayer to address the xine-libs changes from 1.1.x to 1.2.x. The patch uses preprocessor checks and therefore should work for xine-libs on both sides of the change. Here is the patch:
http://humanreadable.nfshost.com/trinity/patches/xine-libs-fixes/kmplayer-xi...
I do not have a system with xine-libs > 1.1.19. Therefore I can only test that the patch works with that version.
David, as you discovered the problem would you please test with xine-libs 1.2.x?
Please let me know whether there are other such patches for xine-libs.
Darrell
I have a patch for kmplayer to address the xine-libs changes from 1.1.x to 1.2.x. The patch uses preprocessor checks and therefore should work for xine-libs on both sides of the change. Here is the patch:
http://humanreadable.nfshost.com/trinity/patches/xine-libs-fixes/kmplayer-xi...
I do not have a system with xine-libs > 1.1.19. Therefore I can only test that the patch works with that version.
David, as you discovered the problem would you please test with xine-libs 1.2.x?
Please let me know whether there are other such patches for xine-libs.
I posted a xine-libs patch for bug report 845 (http://bugs.pearsoncomputing.net/show_bug.cgi?id=845). The patch includes preprocessor checks and like the kmplayer patch, should work with both versions of xine-libs.
Please test!
Darrell