[svn] / branches / release-1_3-branch / xvidcore / dshow / src / config.c Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/dshow/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1994, Wed May 18 16:12:47 2011 UTC revision 1995, Wed May 18 16:13:23 2011 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Configuration processing -   *  - Configuration processing -
5   *   *
6   *  Copyright(C) 2002-2004 Peter Ross <pross@xvid.org>   *  Copyright(C) 2002-2011 Peter Ross <pross@xvid.org>
7   *   *
8   *  This program is free software ; you can redistribute it and/or modify   *  This program is free software ; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 25  Line 25 
25    
26  #include <windows.h>  #include <windows.h>
27  #include <commctrl.h>  #include <commctrl.h>
28    #include <xvid.h>
29  #include "config.h"  #include "config.h"
30  #include "debug.h"  #include "debug.h"
31  #include "resource.h"  #include "resource.h"
# Line 127  Line 128 
128                  break;                  break;
129    
130          case WM_INITDIALOG:          case WM_INITDIALOG:
131                    {
132                            xvid_gbl_info_t info;
133                            char core[100];
134                            HINSTANCE m_hdll;
135    
136                            memset(&info, 0, sizeof(info));
137                            info.version = XVID_VERSION;
138    
139                            m_hdll = LoadLibrary(XVID_DLL_NAME);
140                            if (m_hdll != NULL) {
141    
142                                    ((int (__cdecl *)(void *, int, void *, void *))GetProcAddress(m_hdll, "xvid_global"))
143                                            (0, XVID_GBL_INFO, &info, NULL);
144    
145                                    wsprintf(core, "Xvid MPEG-4 Video Codec v%d.%d.%d",
146                                            XVID_VERSION_MAJOR(info.actual_version),
147                                            XVID_VERSION_MINOR(info.actual_version),
148                                            XVID_VERSION_PATCH(info.actual_version));
149    
150                                    FreeLibrary(m_hdll);
151                            } else {
152                                    wsprintf(core, "xvidcore.dll not found!");
153                            }
154    
155                            SetDlgItemText(hwnd, IDC_CORE, core);
156                    }
157    
158                  // Load Force Colorspace Box                  // Load Force Colorspace Box
159                  SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_ADDSTRING, 0, (LPARAM)"No Force");                  SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_ADDSTRING, 0, (LPARAM)"No Force");

Legend:
Removed from v.1994  
changed lines
  Added in v.1995

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4