~ubuntu-branches/ubuntu/intrepid/transcode/intrepid-proposed

« back to all changes in this revision

Viewing changes to pvm3/pvm_interface.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-10-10 19:12:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051010191247-uq4j6t947df71v7m
Tags: 2:1.0.1-0.0ubuntu1
* New upstream release.
* debian/:
  + Remove 03_rescale.c and 04_average.c dpatches, applied upstream.
  + Force amd64 to link against the correct _pic libs, fixing FTBFS.
  + Disable mjpegtools support on ppc until post-Breezy (FTBFS).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Copyright (C) Marzio Malanchini - July 2003
5
5
 *
6
 
 *  This file is part of transcode, a linux video stream processing tool
 
6
 *  This file is part of transcode, a video stream processing tool
7
7
 *
8
8
 *  transcode is free software; you can redistribute it and/or modify
9
9
 *  it under the terms of the GNU General Public License as published by
33
33
#include <dlfcn.h>
34
34
#else
35
35
# ifdef SYSTEM_DARWIN
36
 
#  include "../libdldarwin/dlfcn.h"
 
36
#  include "libdldarwin/dlfcn.h"
37
37
# endif
38
38
#endif
39
39
 
43
43
 
44
44
void *f_init_pvm_func(char *p_option,void *p_ret_handle)
45
45
{
 
46
#ifdef SYS_BSD
 
47
        const
 
48
#endif
46
49
        char *p_error;
47
50
        char s_module[MAX_BUF];
48
51
        void *p_handle;
50
53
        
51
54
        if(!strcasecmp(p_option,"open"))
52
55
        {
53
 
                sprintf(s_module, "%s/%s", MOD_PATH, M_LOAD_LIB);
 
56
                snprintf(s_module, sizeof(s_module), "%s/%s", MOD_PATH, M_LOAD_LIB);
54
57
                p_handle=dlopen(s_module, RTLD_GLOBAL|RTLD_LAZY);
55
58
                if (!p_handle) 
56
59
                {