Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (57)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (2976)

  • Returning struct from function causes memory corruption

    8 janvier 2015, par William Seemann

    I’m trying to return a FFmpeg AVDictionary struct from one function to another. I wrote the following two functions :

    int get_p_metadata(State **ps, AVDictionary *metadata) {
       printf("get_p_metadata\n");

       State *state = *ps;

       if (!state || !state->pFormatCtx) {
           return FAILURE;
       }

       metadata = NULL;
       av_dict_copy(&metadata, state->pFormatCtx->metadata, 0);

       printf("count in get_p_metadata %d\n", metadata->count);

       return SUCCESS;
    }

    int get_metadata(State **ps) {
       printf("get_metadata\n");

       AVDictionary m;
       get_p_metadata(ps, &m);
       printf("count in get_metadata %d\n", (&m)->count);

       return SUCCESS;
    }

    The code compiles and runs however when I call the get_metadata function the generated output is :

    count in get_p_metadata 12
    count in get_metadata 2073109240

    Can someone explain why the value of count changes from 12 to a random value every time I run this code ? Why isn’t the value of 12 retained once the get_p_metadata function returns ? How would I fix this ?

    UPDATE :

    This solution worked (Thanks to Cornstalks for actually reading the FFmpeg documentation and
    linkdd for the answer) :

    int get_p_metadata (State **ps, AVDictionary **metadata) {
       printf("get_p_metadata\n");

       State *state = *ps;

       if (!state || !state->pFormatCtx) {
           return FAILURE;
       }

       av_dict_copy(metadata, state->pFormatCtx->metadata, 0);

       return SUCCESS;
    }

    int get_metadata(State **ps, AVDictionary *metadata) {
       printf("get_metadata\n");

       AVDictionary *m = NULL;
       get_p_metadata (ps, &m);
       printf("count in get_metadata %d\n", m->count);

       return SUCCESS;
    }
  • Revision 68727 : Fianlisation d’une première version stable permettant l’envoi des ...

    5 janvier 2013, par eric@… — Log

    Fianlisation d’une première version stable permettant l’envoi des notifications avec pièces jointes. Les items de langue ont été nettoyés.
    Pour l’instant il faut Facteur pour envoyer la sauvegarde en pièce jointe. On le nécessite pas car son absence ne nuit pas au fonctionnement du plugin.

  • Revision 68727 : Fianlisation d’une première version stable permettant l’envoi des ...

    11 juin 2018, par eric@… — Log

    Fianlisation d’une première version stable permettant l’envoi des notifications avec pièces jointes. Les items de langue ont été nettoyés.
    Pour l’instant il faut Facteur pour envoyer la sauvegarde en pièce jointe. On le nécessite pas car son absence ne nuit pas au fonctionnement du plugin.