Hi All,
I am getting segmentation fault at either of the following commented lines. Please can someone tell me how do i use these MACROS for(m=0; m<pkt->payload_count; m++) { if(pkt->payloads[m].key_frame == 1) { g_print("Inside IF\n"); GST_BUFFER_OFFSET(outputbuf) = (guint64)1; /*Segmentation fault*/ GST_BUFFER_FLAG_SET (outputbuf, GST_BUFFER_FLAG_DELTA_UNIT); /*Segmentation fault*/ g_print("In Packet Payload %d consists of KEY FRAME\n", m); } } Regards, Irfan The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Administrator
|
On Thu, 2008-11-06 at 20:23 +0530, irfanshaikh wrote:
> Hi All, > > I am getting segmentation fault at either of the following commented > lines. Please can someone tell me how do i use these MACROS > > for(m=0; m<pkt->payload_count; m++) > { > if(pkt->payloads[m].key_frame == 1) > { > g_print("Inside IF\n"); The only reason these could fail is if outputbuf is not a properly allocated buffer (aka : you're writing stuff where you can't). Make sure outputbuf exists and is valid. > GST_BUFFER_OFFSET(outputbuf) = (guint64)1; > /*Segmentation fault*/ > GST_BUFFER_FLAG_SET (outputbuf, GST_BUFFER_FLAG_DELTA_UNIT); > /*Segmentation fault*/ > g_print("In Packet Payload %d consists of KEY FRAME\n", m); > } > } > > > Regards, > Irfan > > > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |