Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (53)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6747)

  • 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;
    }
  • Anomalie #2263 : Page forum : formulaire absent + chaînes langue

    30 août 2011, par cedric -

    pas de bug sur la config générale forum : si on desactive par defaut, il faut que le forum ait été explicitement ouvert pour qu’il continue à fonctionner. Le bug apparent venait juste du fait que le page article etait en cache donc les liens ’Répondre’ toujours là, alors que sur la page forum le (...)

  • Anomalie #3082 (Nouveau) : Plugin Comments : Double définition de #forum

    1er novembre 2013, par jeanmarie grall

    il semble qu’avec la dist (3.0.11) et le plugin Comments (3.2.7), il y ait une double définition de l’ID forum dans les articles :
    une 1ère fois dans la dist > article.html (L55) puis dans le plugin > comments\inclure\forum.html (L3)
    La ligne en question :
    Du coup, ça provoque une erreur de validation HTML...

    Proposition de b_b : "Je pense qu’il serait "logique" de déplacer l’ancre en question dans inclure/forum de la dist pour fixer le bp. "